To restrict access to child routes based on user roles, you can implement a custom _____ Guard.
- authentication
- canActivate
- canDeactivate
- role
To restrict access based on user roles, you can implement a custom canActivate Guard. A Guard like this checks whether the user has the required role to access the route.
Loading...
Related Quiz
- Jasmine allows you to set up initial conditions for your tests in a block known as _____.
- You have a suite of E2E tests written using Protractor, and a particular test is flaky, occasionally failing without any code changes. What approach can you take to identify and resolve the issue?
- You are building an Angular application with a complex form. You want to create an E2E test using Protractor to ensure that the form validation works correctly and that the user can submit the form. What steps would you need to include in your test?
- Child routes in Angular are defined in the _____ property of a route configuration.
- To detach a component from Angular's change detection system, you would call the _____ method on the component's change detector.