Class HistoryLocation
protected
Extends:
EmberObject
Module:
@ember/routing
import HistoryLocation from '@ember/routing/history-location';
Ember.HistoryLocation implements the location API using the browser's history.pushState API.
Using HistoryLocation
results in URLs that are indistinguishable from a
standard URL. This relies upon the browser's history
API.
Example:
app/router.js
Router.map(function() {
this.route('posts', function() {
this.route('new');
});
});
Router.reopen({
location: 'history'
});
This will result in a posts.new url of /posts/new
.
Keep in mind that your server must serve the Ember app at all the routes you define.
Methods
- addObserver
- cacheFor
- decrementProperty
- destroy
- get
- getProperties
- getWithDefault
- incrementProperty
- init
- notifyPropertyChange
- removeObserver
- set
- setProperties
- toString
- toggleProperty
- willDestroy
Properties
Events
No documented items