fix(application): also bind the root component to the injector
This commit is contained in:
@ -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])
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user