Which directive is used to link to routes in Angular?

  • ngRoute
  • routerLink
  • routeLink
  • ngLink
In Angular, the directive used to link to routes is routerLink. This directive is used in templates to generate hyperlinks that navigate to different views or components in an Angular application when clicked. The other options are not valid Angular directives for routing purposes.
Add your answer
Loading...

Leave a comment

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