Angular how can I test if the current route is guarded?

后端 未结 0 539
攒了一身酷
攒了一身酷 2020-12-12 07:21

When the user clicks a logout button, if the current route has an AuthGuard (the only guard in my entire app) then I want to redirect the user to the home page.

My lo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题