material icon indicating copy to clipboard operation
material copied to clipboard

tabs: how to dynamically select a tab?

Open srameshr opened this issue 11 years ago • 5 comments

Is there any option to programmatically select a tab. As of now only clicks on a particular tab activates it. Could not find any that in documentation, or have I missed it?

srameshr avatar Mar 03 '15 14:03 srameshr

Use the md-selected attribute.

cgx avatar Mar 03 '15 14:03 cgx

<md-tabs md-selected="2"> ... </md-tabs>

This does not work. I am left in in initial tab itself

srameshr avatar Mar 03 '15 14:03 srameshr

Damn! Sorry it works. Actually gulp had crashed. So there was no watch on any of my template files.

srameshr avatar Mar 03 '15 15:03 srameshr

any update on this?

Yogeshwar1992 avatar Aug 07 '18 06:08 Yogeshwar1992

@Yogeshwar1992 yes, it is working as expected. If you have questions about how to use the API, please post in the AngularJS Material forums.

Splaktar avatar Aug 09 '18 01:08 Splaktar