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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *