© Adam Freeman 2018
Adam FreemanPro Vue.js 2https://doi.org/10.1007/978-1-4842-3805-9_24

24. Advanced URL Routing

Adam Freeman1 
(1)
London, UK
 
In this chapter, I describe the more advanced URL routing features. I start by showing you how to structure a complex routing configuration using multiple files, how to use router guards to control navigation, and how to lazily load components when they are selected by a route. I finish this chapter by showing you how to work with components that have not been written to work with the Vue Router package. Table 24-1 summarizes the chapter.
Table 24-1

Chapter Summary

Problem

Solution

Listing

Group related routes

Define separate modules for each group of routes

3–5

Inspect and intercept navigation

Use a route guard

6, 9–11 ...

Get Pro Vue.js 2 now with O’Reilly online learning.

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