Reading of What is a router?.
What is a router?
- Routing app using (#)
- Route matches a corresponding function
- Interpret anything after #
- Example: http://example.com/#/pages/help
- Example: http://example.com/#/posts/12
“:params” and “*splats”
- Match any URL components between slashes
- Match any number of URL components
- Last variable in the URL
- These are passed as arguments