Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 305
Nechar Joshi Avatar asked Dec 13 '22 19:12

Nechar Joshi


1 Answers

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

like image 152
i3lai3la Avatar answered May 12 '23 01:05

i3lai3la