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