Created
August 11, 2016 18:12
-
-
Save hvgotcodes/276fa940415b30b496fcc495ef7e524c 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
In comp-a | |
Ember.extend(... | |
didSave(){ | |
// default implementation | |
} | |
actions: { | |
onSave() { | |
this.sendAction('didSave') | |
//or | |
this.get('didSave')(); | |
} | |
} | |
) | |
When I use comp-a | |
{{comp-a | |
didSave=(action handleSave) | |
}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment