Get the value returned by canActivate Method in Angular2 Route in a component?

后端 未结 3 1279
忘了有多久
忘了有多久 2020-12-20 06:21

I have created a Auth Manager in Angular2 to restrict Component access directly . I am still new to angular and learning the concepts.

I was able to restrict the use

3条回答
  •  长情又很酷
    2020-12-20 06:47

    You can use service and set the value you want to display in component inside the AuthManager.

提交回复
热议问题