© Adam Freeman 2018
Adam FreemanPro Angular 6https://doi.org/10.1007/978-1-4842-3649-9_27

27. Routing and Navigation: Part 3

Adam Freeman1 
(1)
London, UK
 
In this chapter, I continue to describe the Angular URL routing system, focusing on the most advanced features. I explain how to control route activation, how to load feature modules dynamically, and how to use multiple outlet elements in a template. Table 27-1 summarizes the chapter.
Table 27-1

Chapter Summary

Problem

Solution

Listing

Delay navigation until a task is complete

Use a route resolver

1–7

Prevent route activation

Use an activation guard

8–14

Prevent the user from navigating away from the current content

Use a deactivation guard

15–19

Defer loading a feature module until it is required

Create a dynamically ...

Get Pro Angular 6 now with O’Reilly online learning.

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