> For the complete documentation index, see [llms.txt](https://bharat-tiwari.gitbook.io/our-tech-journal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bharat-tiwari.gitbook.io/our-tech-journal/angular-4/routing/routerlink.md).

# routerLink and routerLinkActive

```markup
<a routerLink='\userProfile' routerLinkActive='activeMenuOption'> Profile </a>

<a routerLink='\userAlbums' routerLinkActive='activeMenuOption'> Albums </a>
```

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.
