有没有办法从另一个路由器/控制器调用路由操作?可以说我有两条路线:
App.RouteOne = Ember.Object.extend({
actions: {
someCommonFunctionality: function() {
// ...
}
}
});
App.RouteTwo = Ember.Object.extend({
actions: {
// Here I want to call someCommonFunctionality function from RouteOne
}
});
这有可能吗?我有一个AJAX get方法,我不想在RouteTwo中重复,因为我已经在RouteOne中了解它