Question

In the page which is opened with pre-set location.hash parameters like

<server>/chat.html#?jid=123&friend_jid=321

how do I handle the params without Ember.js throwing an Error into console with manual handling of query string (no Ember routes)?

Était-ce utile?

La solution

If you want to disable the hashchange routing. You can use the:

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

This is documented in http://emberjs.com/guides/routing/specifying-the-location-api/

Autres conseils

That was simple. Needed to do some googling before.

Ember.Application.create({ router: null })
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top