Ang2
Diving Into Angular's Router

Basic Router Setup

PRO

The most common way to add routing to an Angular app is to base it on the components which make up the application. Let's add a couple basic components and wire up the router so we can manually navigate to the routes and see the views generated by the components.