Pregunta

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)?

¿Fue útil?

Solución

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/

Otros consejos

That was simple. Needed to do some googling before.

Ember.Application.create({ router: null })
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top