K
K
Konstantin2020-04-23 23:17:22
Angular
Konstantin, 2020-04-23 23:17:22

Why is the tab not reopening?

My code:

{{ selectedIndex }}

<mat-tab-group
  (selectedIndexChange)="selectedIndexChange($event)"
  animationDuration="0ms"
  [selectedIndex]="selectedIndex"
>
</mat-tab-group>


Why if you click open like this:

this.selectedIndex = 1;

Then the tab will open. Then if you go back to the first one there and click again - it does not come off

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question