How can you protect child routes with a Route Guard in Angular?
- By using 'canActivate' Route Guard
- By using 'canActivateChild' Route Guard
- By using 'canDeactivate' Route Guard
- By using 'canLoad' Route Guard
To protect child routes in Angular, you use the 'canActivateChild' Route Guard. It allows you to guard access to child routes based on conditions.
Loading...
Related Quiz
- How do you isolate and test a single component without affecting the actual application in Angular?
- What is the purpose of the RouterModule in Angular?
- Which Route Guard method should be implemented to decide whether navigation to a route should be allowed?
- In which of the following situations would you use an @Input() decorator in a component?
- How does Angular Universal handle asynchronous operations like HTTP requests on the server side?