26 Routing and navigation: part 3

This chapter covers

  • Using resolvers and route guards to control route activation
  • Displaying placeholder content to the user until data is loaded

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 26.1 summarizes the chapter.

Table 26.1. Chapter summary
Problem Solution Listing
Delaying navigation until a task is complete Use a route resolver 1–6
Preventing route activation Use an activation guard 7–13
Preventing the user from navigating away from the current ...

Get Pro Angular 16 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.