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.
The code in the transcript isn't properly code formatted, probably due to missing ``` at the bottom.