Routing
A URL can be set in the following ways:
- The user loads the app for the first time.
- The user changes the URL manually, by clicking on a back or forward button, or by editing the address bar.
- The user clicks on a link within the app.
When the URL changes, the Auric framework:
- finds the route handler that you have provided for the given route
- calls its
model()function - renders the route's template, which can include references to the model