By Nic Raboy
I’ve been keeping up with Angular 2 since the beta releases and if you have too you’ll know that navigation has changed about one hundred times between then and the now stable release. Navigation with the Angular 2 Router component is a tricky subject, but understanding it is necessary for pretty much every quality Angular 2 web application.
I wrote a now obsolete tutorial on how to navigate between Angular 2 routes back when Angular 2 was in beta. Since Angular 2 is now stable, I thought it would be a good idea to share how to navigate between pages with the stable Angular 2 Router component.
To make this easy to understand, we’re going to focus on creating a multiple page Angular 2 application based on the Angular 2 CLI. If you don’t already have the Angular 2 CLI, instructions on how to install it can be found here.