To programmatically navigate to a route with parameters, you use the _____ method of Angular's Router service.
- navigate
- navigateByUrl
- redirectTo
- toRoute
To programmatically navigate to a route with parameters, you use the navigate method of Angular's Router service.
Loading...
Related Quiz
- How does Angular's router load a lazily-loaded module?
- How can you prevent memory leaks related to observables when using the async pipe in Angular?
- You have a directive that changes the background color of an element when the user hovers over it. How would you test this directive to ensure that it behaves correctly?
- What is the purpose of the updateOn property when creating a new FormControl instance?
- 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?