fix(application): also bind the root component to the injector

This commit is contained in:
Tobias Bosch
2014-12-08 10:54:43 -08:00
parent 9c2d411450
commit 9329c0e8bc
2 changed files with 11 additions and 1 deletions

View File

@ -63,7 +63,9 @@ export function documentDependentBindings(appComponentType) {
bind(appRecordRangeToken).toFactory((rootView) => rootView.recordRange,
[appViewToken]),
bind(ChangeDetector).toFactory((appRecordRange) =>
new ChangeDetector(appRecordRange), [appRecordRangeToken])
new ChangeDetector(appRecordRange), [appRecordRangeToken]),
bind(appComponentType).toFactory((rootView) => rootView.elementInjectors[0].getComponent(),
[appViewToken])
];
}