role based authentication route guard[Angular]

 1:Guard are used to restrict the menu navigation

2: for authorization we can have n number of route guard

3:command ng g g<guard name>

4:we can use service in guard

guard can be:

can Active

can ActiveChild

can Deactivate

can Load

https://www.telerik.com/blogs/angular-basics-canactivate-introduction-routing-guards#:~:text=Angular%20route%20guards%20are%20interfaces,%2C%20CanLoad%2C%20CanDeactivate%20and%20Resolve.



Comments

Popular posts from this blog

interview questions js[ Anurag Singh ProCodrr]

reactnative_creation