Routing and Navigation Flashcards
View and Route
Each view has a route through which it can be accessed
Route and Views
Routing maps URLs to views or resources to navigate directly to the desired content or functionality. Typically, the root route / shows a main view, a route such as /users could show a sub-view that displays a list of users, and a route with the user ID as a parameter, such as /users/dadams, would show a specific user.
Supported Features
To navigate to a view, you need to get a link to the view.
The following features are supported:
Child routes, such as /main/users and /main/premises.
Route aliases, such as showing /main/users as the default view when /main is entered.
Fallback routes, such as showing an error page for a path such as /users/invaliduser.
Route parameters, such as /users/:userid to catch URLs such as /users/dadams.
Redirects, such as redirecting root route / to /login.