Inject global var service in routes
This commit is contained in:
parent
60f518d911
commit
2343913f91
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||
|
|
Reference in a new issue