Created
December 10, 2014 12:19
-
-
Save zzarcon/9f643182ca51d8d1b3eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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