Router.bookmark(bookmark) Method (JS)
Registers a named bookmark for the router. bookmark
is a key/value pair, formatted as an object containing the following:
name
(string) : Name of the bookmarkpath
(array) : Path to be navigated to. This uses the same notation asnavigate()
.
This example registers a bookmark, "optionsPage"
, with the path "options"
:
router.bookmark({
name: "optionsPage",
path: [ "options", { } ]
});
Location
- Namespace
- Fuse.Navigation
- Package
- Fuse.Navigation 2.9.1