question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support hiding/showing tabs instead of destroying/creating

See original GitHub issue

This request for tabs comes up some some frequency. MatTabGroup uses ngIf to show the current tab, meaning that tab content is torn down when switching between tabs. Sometimes people want to preserve uncommitted state across tab changes (e.g. #17034 and #17391), which this prevents.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
afillioncommented, Apr 8, 2021

Hi @crisbeto I just ran into this issue cause i need your input ‘preserveContent’. ( I need to mat-tab content not disappear from DOM when offscreen.) I saw your commit is in a merge request since november 2020. I would like to know if it’s still relevant ? And if it is, when do you think the merge will be done ? Cordially ! 😃

6reactions
bharathmuppacommented, Sep 22, 2021

Could you please update on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Load/Unload components only when active tab is selected
Is there a way to load and destroy components so that only the active tab is loaded, and the inactive tabs don't load...
Read more >
Hide and show or destroy and create objects?
Right now there's three tabs: Inventory, Wish list and a Collection tab.All of these have their scenes with animated sprites panels and whatnot....
Read more >
How to create and save Chrome tab groups - The Verge
After your browser relaunches, right-click on your tab group label. You'll now see a toggle called Save Group. Click on the toggle to...
Read more >
Angular directives for Bootstrap - AngularUI
For Angular 2 support, check out ng-bootstrap , created by the UI Bootstrap team. Dependencies. This repository contains a set of native AngularJS...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Fixed extensions showing a UUID instead of their name for cookie entries ... Added support for editing @-rules in the Styles sidebar of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found