© 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 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.