Skip to content

Instantly share code, notes, and snippets.

@MiguelMadero
Last active August 29, 2015 14:09
Show Gist options
  • Save MiguelMadero/dc933b90d89fbe68511c to your computer and use it in GitHub Desktop.
Save MiguelMadero/dc933b90d89fbe68511c to your computer and use it in GitHub Desktop.
inject-store-on-components
Ember.onLoad('Ember.Application', function(Application) {
Application.initializer({
name: 'inject-store-on-components',
initialize: function(container, application) {
application.inject('component', 'store', 'store:main');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment