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> 

plunker example


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -