mardi 21 mars 2017

How to transition to the same route from a component in EmberJS

I have a main template say showcountry.hbs , inside that I am having a component show-state.hbs. In show-state.js I have tried putting "this.transitionTo('routename')" . I see that it works for routes other than showcountry . Complicating thing slightly is that in my router.js the entry looks something like the following " this.route('showcountry' , {path : '/app/mod/country' });

I find that in component when I give the URL pattern in this.transitionTo it throws unrecognized URL error .

Please help.




Aucun commentaire:

Enregistrer un commentaire