The RouterLink Directive
In this lesson, we'll learn how to use the RouterLink directive to navigate around the application.
We'll cover the following
At the moment, the only way we can navigate around the application is by manually typing the path in the URL. The next thing we’ll tackle is creating some links that we can use to navigate to the other pages.
We installed Bootstrap, which comes with some classes for creating a navigation bar. You can find more information about those classes here.
We’ll be using it to help us create the links. Also, we’ll be using Bootstrap to help us center the page content. Update the app.component.html
file to the following:
Get hands-on with 1200+ tech skills courses.