Closed leskivan closed 7 years ago
Hi @leskivan
Yes this works!
You can also refactor your isAuth()
method into:
isAuth() {
$log.info(this.auth.isAuthenticated())
return this.auth.isAuthenticated();
}
as isAuthenticated()
is going to return a boolean
Hi, I'm building app with two types of users (user and admin).
I'm going to need one menu (public links, links for users and links for admins)
Can some point me i right direction to do this in frontend ( I've setup backend multi user auth middleware).
I tried to move menu from header page to new component (topmenu) but how can i "catch" when $auth ($auth.isAuthentichated()) changes?
Is this even good approach?