Submodule 21.1: Routing - Practice
Update the footer.component.html
Finally, update the Links in the footer.component.html
file as follows:
<ul class="list-unstyled">
<li><a routerLink="/home" >Home</a></li>
<li><a routerLink="/menu" >Menu</a></li>
</ul>
Anchor tags use the routerLink
directive to bind instead of the href attribute to point to specific routes.