fix(PrivateComponentLoader): add the loader to the app injector

fixes #1063
This commit is contained in:
Victor Berchet
2015-03-24 10:19:05 +01:00
parent 19c1773133
commit 65d759316b
4 changed files with 49 additions and 0 deletions

View File

@ -19,6 +19,8 @@ import {StyleUrlResolver} from 'angular2/src/core/compiler/style_url_resolver';
import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
import {StyleInliner} from 'angular2/src/core/compiler/style_inliner';
import {CssProcessor} from 'angular2/src/core/compiler/css_processor';
import {EventManager} from 'angular2/src/core/events/event_manager';
import {PrivateComponentLoader} from 'angular2/src/core/compiler/private_component_loader';
import {reflector} from 'angular2/src/reflection/reflection';
@ -170,6 +172,19 @@ function setup() {
"annotations": []
});
reflector.registerType(EventManager, {
"factory": () => new EventManager([], null),
"parameters": [],
"annotations": []
});
reflector.registerType(PrivateComponentLoader, {
"factory": (compiler, strategy, eventMgr, reader) =>
new PrivateComponentLoader(compiler, strategy, eventMgr, reader),
"parameters": [[Compiler], [ShadowDomStrategy], [EventManager], [DirectiveMetadataReader]],
"annotations": []
});
reflector.registerGetters({
"greeting": (a) => a.greeting
});