Back to the routes

All right, now it's time to implement routing for our application! In the following topics, we'll create the following routes for our application:

Route path



This route will activate the Project component in the outlet of our main application component. This consists of the projects URL segment as well as the :projectId URL segment to specify the project ID.


This route will activate the TaskList component. We will create a ProjectTaskList wrapper component in order to decouple our TaskList component from routing. We'll apply the procedure described in the previous section, Router versus template composition.


This route will activate ...

Get Mastering Angular 2 Components now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.