重複の可能性:
他のコントローラーからのコントローラーへのアクセス
古いルーター スタイルの Ember pre2 以前では、ルーターから他のコントローラーを取得できたので、私が というコントローラーにいた場合、次のPeopleController
ようなことができました。
App.PeopleController = Ember.Controller.extend({
some_computed_property: (function() {
return this.get('target.otherController.property_i_want');
}).property('target.otherController.property_i_want')
});
またはデバッグコンソールから
> App.router.get('otherController.property_i_want')
これらの両方が機能しました。Pre4 / 新しいルーティング スタイルはこれを破るようです。新しいルーターと pre4 でこの機能を利用するにはどうすればよいですか?