routerLinkActive
directive
Example of a router link with a special CSS class when active.
<a routerLink="/" routerLinkActive="some-css-class">Home page</a>
create a routing module in Angular
ng g module user --routing