routerLink and routerLinkActive
In angular app, you should use routerLink
directive with a
tag instead of using href
to navigate to another view in the app. routerLinkActive
directive allows us to specify the css class that we may want to apply to the link when that link's path is activated/user navigates to that link.
Last updated