Diving Into Angular's Router

Navigating Between Routes


Angular's router gives us a couple different ways to link between various routes in our apps. We can use template-based routing with the routerLink directive, or we can navigate programmatically using the Router class. Let's get a feel for both methods.