Abstract
Readonly
Abstract
lengthThe number of element in navigation history.
Readonly
Abstract
onAn OnEvent
sender of navigation events.
The [OnEvent__symbol]
property is an alias of this one.
Readonly
Abstract
onAn OnDomEvent
sender of enter page events.
Readonly
Abstract
onAn OnDomEvent
sender of leave page events.
The registered listener may cancel navigation by calling preventDefault()
method of received event.
Readonly
Abstract
onAn OnDomEvent
stay on page events.
The registered listener is informed when navigation has been cancelled by one of leave page event receivers, navigation failed due to e.g. invalid URL, or when another navigation request initiated before the page left.
OnDomEvent
sender of stay on page events.
Readonly
Abstract
pageCurrent page.
Readonly
Abstract
readAn AfterEvent
keeper of current page.
The [AfterEvent__symbol]
property is an alias of this one.
Abstract
goLoads a page from navigation history, identified by its relative location to the current page.
For example -1
navigates to previous page, while 1
navigates to the next one. If you specify an out-of-bounds
value (for instance, specifying -1 when there are no previously-visited pages in navigation history), this method
silently has no effect.
Optional
delta: numberRelative location in navigation history to navigate to. The absent value or value of 0
reloads
the current page.
Abstract
openOpens a page by navigating to the given target
.
Appends an entry to navigation history.
PreNavigateEvent#wesib:preNavigate On window object prior to actually navigate.
Then navigates to the target
, unless the event cancelled.
NavigateEvent@wesib:navigate On window object when navigation succeed.
A promise resolved to navigated page, or to null
otherwise.
Either navigation target or URL to navigate to.
Abstract
replaceReplaces current navigation history entry with the given target
.
PreNavigateEvent#wesib:preNavigate On window object prior to actually update the history.
Then navigates to the target
, unless the event cancelled.
NavigateEvent@wesib:navigate On window object when history updated.
A promise resolved to navigated page, or to null
otherwise.
Either navigation target or URL to replace current history entry with.
Abstract
updateAbstract
withCreates parameterized navigation instance and assigns a page parameter to apply to target page.
New parameterized navigation instance.
Parameter value type.
Parameter input type.
Static
perStatic
toGenerated using TypeDoc
Browser navigation service.
Expected to be used as a History and Location APIs replacement.
Fires additional navigation events the browser does not support natively.
Implements an
EventSender
interface by sending navigation events to registered receivers.Implements an
EventKeeper
interface by sending current page to registered receivers.Available as bootstrap context value.