Ember.HashLocation

protected

Ember.HashLocation implements the location API using the browser's hash. At present, it relies on a hashchange event existing in the browser.

Using HashLocation results in URLs with a # (hash sign) separating the server side URL portion of the URL from the portion that is used by Ember.

Example:

1
2
3
4
5
6
7
8
9
App.Router.map(function() {
  this.route('posts', function() {
    this.route('new');
  });
});

App.Router.reopen({
  location: 'hash'
});

This will result in a posts.new url of /#/posts/new.