The ________ guard is used in Angular to decide if a route can be activated.
- Auth
- CanActivate
- Permission
- RouteActivation
The blank should be filled with "CanActivate." In Angular, the CanActivate guard is used to determine if a route can be activated based on certain conditions or permissions. It plays a crucial role in controlling access to routes and ensuring security in Angular applications.
Loading...
Related Quiz
- In the context of Reactive Forms, which property indicates the current value of the FormControl, FormGroup, or FormArray instance?
- When dealing with an Observable, which method is used to start its execution?
- How does Angular ensure that a module is only loaded once regardless of how many times it is lazily loaded?
- Your application's end-users have reported intermittent errors. You decide to use source maps to debug the production build of your Angular application. Which of the following considerations is essential when using source maps in production?
- In an e-commerce application, certain routes should only be accessible after a user logs in. To check the user's authentication status before allowing them to access these routes, which Route Guard would you use?