What does the routerLink directive do in Angular?
- It creates a new Angular project
- It defines a component's class
- It defines a route in the application
- It displays a component in the template
The routerLink directive in Angular is used to define a route in the application. It specifies the route to navigate to when a user interacts with the element containing this directive.
Loading...
Related Quiz
- If a pipe takes multiple input values, how should it be tested to ensure all cases are covered?
- How can you pass data to a Route Guard in Angular?
- What Angular service allows you to access the route parameters in the component class?
- When you want to preload data for a route, you can use the _____ property in the route configuration.
- In Angular, when you want to make sure that a service gets instantiated lazily, only when it is needed, you should use _____.