What is Router-link directive in Angular 2?
The router-link derivatives enable the navigation from any specific view to the other. It works immediately as a user is performing application tasks. The link can directly arise from browser and navigation is done on the basis of user action like the click of an anchor tag.
The router link directive gives control to the router for anchor tag elements. It also binds a clickable HTML to the route to enable the navigation. The routerlink directive can easily be bound to an array, E.g.
<a [routerlink] = "[ '/ heroes']" >Heroes</a>