मैं सिर्फ ember 2.1
को अपने आवेदन के लिए उन्नत और मेरे वेब ब्राउज़र कंसोल में इस त्रुटि हो रही है नहीं है:Uncaught TypeError: this.transitionTo एक समारोह
Uncaught TypeError: this.transitionTo is not a function
मेरा url में, मैं एक चर direction
नामित किया है:
http://localhost:4200/plates/new?direction=plates
तब मैं अपने नियंत्रक में इस का निर्माण:
export default Ember.Controller.extend({
queryParams: ['direction'],
direction: null,
actions: {
lastpage(){
this.transitionTo(this.get('direction'));
},
save(...){
},
},
});
यह यू मेरे अपग्रेड से पहले काम करने के लिए sed। क्या इस कमी को ठीक किया/मैं कैसे ठीक करूं?