Skip to content

Commit 53d5f36

Browse files
committed
feat(application): move classes to the application level injector
fixes angular#649
1 parent 695b4eb commit 53d5f36

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/angular2/src/core/application.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ var _rootInjector: Injector;
2424
// Contains everything that is safe to share between applications.
2525
var _rootBindings = [
2626
bind(Reflector).toValue(reflector),
27-
bind(ChangeDetection).toValue(dynamicChangeDetection),
28-
Compiler,
29-
CompilerCache,
30-
TemplateLoader,
31-
TemplateResolver,
32-
DirectiveMetadataReader,
33-
Parser,
34-
Lexer,
35-
bind(ShadowDomStrategy).toValue(new NativeShadowDomStrategy()),
36-
bind(XHR).toValue(new XHRImpl()),
3727
];
3828

3929
export var appViewToken = new OpaqueToken('AppView');
@@ -87,6 +77,16 @@ function _injectorBindings(appComponentType): List<Binding> {
8777
var plugins = [new HammerGesturesPlugin()];
8878
return new EventManager(plugins, zone);
8979
}, [VmTurnZone]),
80+
bind(ShadowDomStrategy).toValue(new NativeShadowDomStrategy()),
81+
Compiler,
82+
CompilerCache,
83+
TemplateResolver,
84+
bind(ChangeDetection).toValue(dynamicChangeDetection),
85+
TemplateLoader,
86+
DirectiveMetadataReader,
87+
Parser,
88+
Lexer,
89+
bind(XHR).toValue(new XHRImpl()),
9090
];
9191
}
9292

0 commit comments

Comments
 (0)