From 2343913f91cecfc3cddd6d948985382e57de116c Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 14 Jul 2015 13:34:33 -0800 Subject: [PATCH] Inject global var service in routes --- app/initializers/global-variables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/initializers/global-variables.js b/app/initializers/global-variables.js index 7090375..554e6d8 100644 --- a/app/initializers/global-variables.js +++ b/app/initializers/global-variables.js @@ -8,6 +8,7 @@ var globals = Ember.Object.extend({ export function initialize(container, application) { application.register('service:globals', globals, {singleton: true}); + application.inject('route', 'globals', 'service:globals'); application.inject('controller', 'globals', 'service:globals'); application.inject('component', 'globals', 'service:globals'); application.inject('adapter', 'globals', 'service:globals');