History
The History
class keeps track and manages a stack of routes that the user
has navigated to in their session.
An item can be pushed to the top of the stack using the push
method. An
item in the stack has a name and a URL. The name need not be unique; if it is
the same as the item before it, that will be overwritten with the new URL. In
this way, if a user visits a discussion, and then visits another discussion,
popping the history stack will still take them back to the discussion list
rather than the previous discussion.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Protected Members | ||
protected |
The stack of routes that have been navigated to. |
Method Summary
Public Methods | ||
public |
back(): * Go back to the previous route in the history stack. |
|
public |
backUrl(): * Get the URL of the previous page. |
|
public |
Check whether or not the history stack is able to be popped. |
|
public |
getCurrent(): Object Get the item on the top of the stack. |
|
public |
Get the previous item on the stack. |
|
public |
home() Go to the first route in the history stack. |
|
public |
Push an item to the top of the stack. |