🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.
Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.
guide
Concepts
Hooks
Router hooks
Router hooks can be set with $ helpers ($afterUrl) or directly on the router ($router.afterUrl)
beforeRouterInit
Runs before each router initiation
afterRouterInit
Runs after each router initiation
beforeUrlChange
Guard that runs before url changes
afterUrlChange
Runs after url has changed
transformFragments
Transform route fragments after navigation
onDestroyRouter
Runs before router is destroyed
clickHandler
Filters click to the router.
Examples
Simple loader / spinner example
Loader that uses beforeUrlChange and afterUrlChange