Nechar Joshi
Nechar Joshi

Reputation: 670

How to make a specific tab to be active on Angular Material Tab Component

I am working on the Angular Material's Tabs Component (https://material.angular.io/components/tabs/overview)

By default, the first tab is selected after the page load.

How can I change to some another specific tab to already be selected when the page loads.

Upvotes: 5

Views: 10786

Answers (1)

i3lai3la
i3lai3la

Reputation: 980

You can use [selectedIndex]="selectedIndex" for your tab to specifically pick which tab to be display

Upvotes: 13

Related Questions