fix(ivy): component ref injector should support change detector ref (#27107)
PR Close #27107
This commit is contained in:

committed by
Misko Hevery

parent
3ec7c5081d
commit
ee12e725c0
@ -67,11 +67,14 @@ export class Testability implements PublicTestability {
|
||||
private _didWork: boolean = false;
|
||||
private _callbacks: WaitCallback[] = [];
|
||||
|
||||
private taskTrackingZone: any;
|
||||
private taskTrackingZone: {macroTasks: Task[]}|null = null;
|
||||
|
||||
constructor(private _ngZone: NgZone) {
|
||||
this._watchAngularEvents();
|
||||
_ngZone.run(() => { this.taskTrackingZone = Zone.current.get('TaskTrackingZone'); });
|
||||
_ngZone.run(() => {
|
||||
this.taskTrackingZone =
|
||||
typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');
|
||||
});
|
||||
}
|
||||
|
||||
private _watchAngularEvents(): void {
|
||||
|
Reference in New Issue
Block a user