Navigating A Web Application With The Angular 2 Router



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.

Read full article...

Share on Google Plus

About www. codeandyou.com

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment