Skip to content

Instantly share code, notes, and snippets.

@hontas
Last active January 4, 2016 18: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 hontas/8659704 to your computer and use it in GitHub Desktop.
Save hontas/8659704 to your computer and use it in GitHub Desktop.
Ember footer component with bubbling actions
App.MemModuleFooterComponent = Ember.Component.extend({
tagName: 'footer',
classNames: ['mem-module-footer'],
actions: {
clearErrorMsg: function() {
this.set('errorMsg', '');
},
save: function() {
this.sendAction('save');
},
cancel: function(){
this.sendAction('cancel');
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment