Skip to content

Instantly share code, notes, and snippets.

@geekygrappler
Last active August 29, 2015 14:22
Show Gist options
  • Save geekygrappler/8a273ed1821ae1fdc509 to your computer and use it in GitHub Desktop.
Save geekygrappler/8a273ed1821ae1fdc509 to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
createTodo: function(newTitle) {
this.set('newTitle', '');
this.sendAction('createTodo', newTitle);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment