Skip to content

Instantly share code, notes, and snippets.

@catkins
Created November 16, 2014 06:16
Show Gist options
  • Select an option

  • Save catkins/1c2805b91cf443180402 to your computer and use it in GitHub Desktop.

Select an option

Save catkins/1c2805b91cf443180402 to your computer and use it in GitHub Desktop.
Ember.Application.initializer({
name: "storageService",
initialize: function(container, application) {
application.register('service:storage', application.StorageService, {
singleton: true
});
application.inject('route', 'storage', 'service:storage');
application.inject('controller', 'storage', 'service:storage');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment