Once routing is set up, we can add a new route by adding a new component and adding a path to our routes array in app.module.ts
. But how do we navigate between the two routes? In this lesson, I'll show you how to use routerLink
to switch between the routes without causing the page to refresh.