material
material copied to clipboard
$mdTabs service? Select tab from controller
Is there a way to select an md-tab from the Controller? Thank you.
In md-tabs directive, you can add the md-selected attribute, for example:
<md-tabs md-selected="selectedIndex">
$scope.selectedIndex = newTabIndex;
thanks @ferc, thats exactly what I needed.
@ferc hello ,do u know how to select an md-tab from the other controller