jeudi 28 septembre 2017

Change route outside Ember app

I'm having a problem with changing route outside Ember app. Code of the app is external and it's not possible to extend it in any ways. What I tried so far:

  1. Changing location.href (Ember unable to catch this event and full page reload occurs)
  2. Using History.pushState() (doesn't change anything)
  3. Changing href attribute on existed link (Ember remembers initial value and ignores new one)
  4. Thinking about compiling template with helper, but Ember.View isn't globally available. And I don't know routes, however it's not a problem – I need it on one particular service and routes can be reverse engineered.

Maybe there is more elegant way to do it?




Aucun commentaire:

Enregistrer un commentaire