• Overview
@angular/router

RouterLinkActive

directive

Tracks whether the linked route of an element is currently active, and allows you to specify one or more CSS classes to add to the element when the linked route is active.

  
    class RouterLinkActive implements OnChanges ,OnDestroy ,AfterContentInit {}
  
  
Jump to details