Created
March 23, 2015 18:05
-
-
Save jwo/5911d4aca64b0df5bad6 to your computer and use it in GitHub Desktop.
My favorite part of Ember Data 1.0 beta 16 -- more http://emberjs.com/blog/2015/03/23/ember-data-1-0-beta-16-released.html
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.TweetComposerComponent = Ember.Component.extend({ | |
store: Ember.inject.service(), | |
newTweet: function() { | |
return this.get('store').createRecord('tweet', {}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment