Go back to the previous entry in the history stack.
Does nothing if there is no previous entry.
Equivalent to calling history.go(-1)
.
Go forward to the next entry in the history stack.
Does nothing if there is no next entry.
Equivalent to calling history.go(1)
.
The position in the history to which you want to move, relative to the current page.
A negative value moves backwards, a positive value moves forwards.
So, for example,history.go(2)
moves forward two pages and history.go(-2)
moves back two pages.
If no value is passed or if delta equals 0, it has the same result as calling location.reload()
.
Push a new entry to the history stack with the given path and state.
Replace the path and the state of the current entry in the history stack.
Subscribe to all history events.
Generated using TypeDoc
A history implementation that uses the browser's history API. This class is essentially a wrapper around the browser's history API that conforms to the History interface used by the router.
https://developer.mozilla.org/en-US/docs/Web/API/History HTML5 History API