mercredi 23 novembre 2016

Define transitionTo in Emberjs component

I've a component which is being used at several routes. Now in that component I want to using swipeLeft and swipeRight events from ember-gestures library.

When i try alert messages they get fired on both events. But when I try to run this.transitionTo('someRoute', dynamicPart) then it doesn't get fired.

I get Uncaught TypeError: this.transitionTo is not a function(…) error.

How can I use transitionTo() from Ember-component?




Aucun commentaire:

Enregistrer un commentaire