angular - Dynamic Variable in md-tab -
can make dynamic tab label in md-tab-group
?
<md-tab-group> <md-tab label="abc"></md-tab> <md-tab label="def"></md-tab> <md-tab label="xyz"></md-tab> </md-tab-group>
i want make tab name hardy when hardy logins , should on right part of screen , logout icon user can logout eaisly.
any appriciated.
thanks.
you have 2 options how can handle shown below
<md-tab-group> <md-tab label="{{loggedin}}"></md-tab> <md-tab [label]="loggedin"></md-tab> </md-tab-group>
Comments
Post a Comment