Skip to content

Instantly share code, notes, and snippets.

@wcurtis
Created March 26, 2015 14:07
Show Gist options
  • Save wcurtis/9edf4710504973d50a68 to your computer and use it in GitHub Desktop.
Save wcurtis/9edf4710504973d50a68 to your computer and use it in GitHub Desktop.
Inject store into Ember components
/**
* Adds store to components
* http://stackoverflow.com/a/18754349/540194
*/
export function initialize(container, application) {
application.inject('component', 'store', 'store:main');
}
export default {
name: 'inject-store',
initialize: initialize
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment