PRIVATE
Extends: Ember.Object
Defined in: packages/ember-routing/lib/location/history_location.js:16
Module: ember-routing
Ember.HistoryLocation implements the location API using the browser's history.pushState API.
Stringprivate
Used when using {{action}} helper. The url is always appended to the rootURL.
String
String Objectprivate
Get the current history.state. Checks for if a polyfill is required and if so fetches this._historyState. The state returned from getState may be null if an iframe has changed a window's history.
Object Stringprivate
Returns the current location.pathname without rootURL or baseURL
String Used to set state on first call to setURL
Register a callback to be invoked whenever the browser history changes, including using forward and back buttons.
Function
Pushes a new state.
String
Replaces the current state.
String
Uses history.replaceState to update the url without a page reload or history modification.
String
Uses history.pushState to update the url without a page reload.
String
Cleans up the HistoryLocation event listener.
Will be pre-pended to path upon state change
Default: '/'
© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
http://emberjs.com/api/classes/Ember.HistoryLocation.html