Chapter 6. The Component Router
This chapter will cover the following recipes:
- Setting up an application to support simple routes
- Navigating with routerLinks
- Navigating with the Router service
- Selecting LocationStrategy for Path Construction
- Building stateful RouterLink behavior with RouterLinkActive
- Implementing nested views with route parameters and child routes
- Working with Matrix URL parameters and routing arrays
- Adding route authentication controls with route guards
Introduction
Few features of Angular 2 should be anticipated more than the Component Router. This new routing implementation affords you a dazzling array of features that were missing or severely lacking in Angular 1.
Angular 2 implements matrix parameters; this is an entirely new syntax ...
Get Angular 2 Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.