javascript - Home button visible angular 2 -


hello there way make home button of page visible when logged in ?i think possible in angular 2.

yes can in angular 2. can use *ngif directive check weather user login or not.

for example:

<a href="#" *ngif="islogin"> home</a> 

if value of islogin true home link visible.


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

c# - Update a combobox from a presenter (MVP) -