Router.getRoute(callback) Method (JS)
Requests the current route (async) and calls a callback when ready.
The callback receives an array on the form [path, parameter]+
.
Example:
router.getRoute(function(route) {
route[0] // first path segment
route[1] // first parameter
route[2] // second path segment
route[3] // second parameter
// and so on
});
Location
- Namespace
- Fuse.Navigation
- Package
- Fuse.Navigation 2.9.1