Skip to content

Navtabs active index wrong #4737

@mbeckenbach

Description

@mbeckenbach

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Correct active highlighting

What is the current behavior?

When removing or adding a tab via ngIf the active tab highlight from routerLinkActive is not beeing updated.

An example:

Tab 1 | Tab 2 | Tab 3 (Active) | Tab 4

When you remove Tab 2 from the DOM, the active highlight will move from Tab 3 to Tab 4 as it seams to be bound to the index and not to the router link.

What are the steps to reproduce?

Not sure how to create a plunkr with routing sorry

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

ng 4.1.x, md2 beta 5

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions