Describe me why we using auth guard in Angular? Give an example when we use auth guard ?
Interviews1 answer
1 Answer
AuthGuard is a class which implements the interface CanActivate , to decide whether the user has access/permission to view specific page / route / path in the application or not. This will be useful when we need authentication/authorization based control over the application.
Pranam BhatPosted May 21, 2021, 11:26 AM EDT

