Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created August 11, 2016 18:12
Show Gist options
  • Save hvgotcodes/276fa940415b30b496fcc495ef7e524c to your computer and use it in GitHub Desktop.
Save hvgotcodes/276fa940415b30b496fcc495ef7e524c to your computer and use it in GitHub Desktop.
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