The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Style the Active Angular Navigation Element with routerLinkActive

Style the Active Angular Navigation Element with routerLinkActive

1:53
You can easily show the user which route they are on using Angular’s `routerLinkActive`. Whenever a route matches the `routerLink` defined on the element, then the `routerLInkActive` will add the class that you assign it to.
Watch this lesson now
Avatar
egghead.io

You can easily show the user which route they are on using Angular 2’s routerLinkActive. Whenever a route matches the routerLink defined on the element, then the routerLInkActive will add the class that you assign it to.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?