Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created December 10, 2014 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/9f643182ca51d8d1b3eb to your computer and use it in GitHub Desktop.
Save zzarcon/9f643182ca51d8d1b3eb to your computer and use it in GitHub Desktop.
App.ApplicationRoute = Em.Route.extend({
actions: {
showModal: function() {
//Quiero que entre aqui
}
}
})
App.ParentComponent = Em.Component.extend({
actions: {
showModal: function() {
//No quiero que este componente capture la action
}
}
});
App.ChildComponent = Em.Component.extend({
click: function() {
var options = {
type: 'default'
};
this.sendAction("action", options);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment