lundi 31 août 2015

Uncaught TypeError: Cannot read property 'enter' of undefined , while using transitionToRoute

I am getting an "Uncaught TypeError: Cannot read property 'enter' of undefined". This is when i am using transitionToRoute in a controller. The transitionToRoute function in controller,

     transitionToRoute: function() {
         // target may be either another controller or a router
         var target = get(this, 'target');
         var method = target.transitionToRoute || target.transitionTo;
         return method.apply(target, arguments);
     },

here the target variable is being assigned a view instead of controller or router. I don't know if this is a issue or am i using transitionToRoute in a wrong way. Need help here.




Aucun commentaire:

Enregistrer un commentaire