Inject global var service in routes

This commit is contained in:
Matthew Dillon 2015-07-14 13:34:33 -08:00
parent 60f518d911
commit 2343913f91

View file

@ -8,6 +8,7 @@ var globals = Ember.Object.extend({
export function initialize(container, application) { export function initialize(container, application) {
application.register('service:globals', globals, {singleton: true}); application.register('service:globals', globals, {singleton: true});
application.inject('route', 'globals', 'service:globals');
application.inject('controller', 'globals', 'service:globals'); application.inject('controller', 'globals', 'service:globals');
application.inject('component', 'globals', 'service:globals'); application.inject('component', 'globals', 'service:globals');
application.inject('adapter', 'globals', 'service:globals'); application.inject('adapter', 'globals', 'service:globals');