Angular route async authorization

后端 未结 4 1721
一整个雨季
一整个雨季 2020-12-11 17:46

Angular doesn\'t provide any authorization/access permission on routing (I\'m talking default Angular route 1.x and not beta 2.0 or UI route). But I do have to implement it.

4条回答
  •  孤街浪徒
    2020-12-11 18:40

    ui-router have a lot of events that you can easy manipulate. I always use it.

    State Change Events have everything you need. Something like this will be implement in the AngularJS 2.x.

    But if you are looking the solution for native Angular 1.x.y router this solution will not help you. Sorry

提交回复
热议问题