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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -