Chapter 4. Navigating the single page

This chapter covers

  • An introduction to client-side routing
  • An overview of routes and their configuration
  • A summary of how routers work
  • How to use route parameters

Part 1 of this book covered views and how they’re created. What it didn’t cover, though, is client-side routing. This can be used to navigate from one view to the next, but that’s only part of the picture. Client-side routing is also about transitioning between different states in the application. This could include modifications to the current view without navigation or other activities that don’t include changes in the UI at all.

In this chapter, you’ll explore how users navigate in an SPA by using client-side routing. You’ll not only ...

Get SPA Design and Architecture: Understanding single-page web applications now with O’Reilly online learning.

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