Skip to content

Support hiding/showing tabs instead of destroying/creating #19480

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions