RouterLink Configuration

In this lesson, we'll learn how we can configure the RouterLink directive.

The last step for creating child routes is to add some links. We can use the routerLink directive to generate the links. First, let’s add the elements to create tabs. Bootstrap comes with classes for creating tabs. You can find more information here.

For the about page, we’ll be implementing the routerLink directive slightly different from before because we’re dealing with child routes.

Relative links

In the about-main.component.html file, we’ll update the template.

Get hands-on with 1200+ tech skills courses.