This chapter covers
- What routes are and demonstrates how to create them
- Different patterns for navigation and their merits
- How to protect pages from access without authorization
- Organizing code into modules
- Using secondary routes for multiple routes
Most applications require the ability to navigate between different pages during the lifecycle of the application. Typically, an application has at least a few basic pages, such as a login page, home page, user’s account page, and so forth. Routing is the term used to describe the capability for the application to change the content on the page as the user navigates around. Our previous chapter examples haven’t used routing; they’ve been limited to displaying all the content at once. ...