O'Reilly logo

Pro Angular, Second Edition by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Adam Freeman 2017

Adam Freeman, Pro Angular, 10.1007/978-1-4842-2307-9_27

27. Routing and Navigation: Part 3

Adam Freeman

(1)MILTON KEYNES MK6 3PA, 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 form navigating away from the current content

Use a deactivation guard

15–19

Defer loading a feature module until it is required

Create a dynamically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required