Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Is there a way to select a tab programatically? #182

@nikhildev

Description

@nikhildev

Hi,

This is how I have implemented tab in my application

<material-tabs selected="selectedTab" center>

<material-tab label="first"></material-tab>

<material-tab label="second"></material-tab>

</material-tabs>

<div class="animate-switch-container" ng-switch on="selectedTab">



<div class="animate-switch" ng-switch-when="0">

Some content

</div>





<div class="animate-switch" ng-switch-when="1">

Some content

</div>

When I try to set the selectedTab variable in my controller, the tab does not move to the one selected. Is this the intended behaviour or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions