I have on action handle in my custom view. I need to call this method from my mixin.
Js:-
App.TestView = Ember.View.extend({
actions: {
myClick: function () {
// doing something here
}
}
});
App.ActionMixin = Ember.Mixin.create({
actions: {
callMyClick: function () {
// how do I call view's 'myClick' method here?
}
}
});
That Test View is a custom view which is derived by {{view "test"}}. This view will share that parent controller.
I need to access that 'myClick' method from my another common mixins (Action Mixin) inside of 'callMyClick' method.
Kindly help me out of this handle.