0

ビュー内にいて、現在のビューとは別のコントローラーまたはルーターにアクションを送信したいのですが、どうすればよいですか?

App.FormView = Ember.View.extend ({

    actions: {
        clicked: function() {
            context = this.get("context");
                App.OtherViewController.send("clicked", context); //this doesn't work
            // this.get("controller").send("clicked", context); // this sends to the current controller
        }
    }
});
4

1 に答える 1