mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Revert "refactor(core): rename ViewRef<T> to InternalViewRef<T> and remove existing InternalViewRef (#52430)" (#52484)
This reverts commit a568bc5d97 as it breaks
tests in g3.
PR Close #52484
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, getDebugNode, NgZone, RendererFactory2, ɵDeferBlockDetails as DeferBlockDetails, ɵFlushableEffectRunner as FlushableEffectRunner, ɵgetDeferBlocks as getDeferBlocks, ɵInternalViewRef as InternalViewRef} from '@angular/core';
|
||||
import {ChangeDetectorRef, ComponentRef, DebugElement, ElementRef, getDebugNode, NgZone, RendererFactory2, ɵDeferBlockDetails as DeferBlockDetails, ɵFlushableEffectRunner as FlushableEffectRunner, ɵgetDeferBlocks as getDeferBlocks} from '@angular/core';
|
||||
import {Subscription} from 'rxjs';
|
||||
|
||||
import {DeferBlockFixture} from './defer';
|
||||
@@ -194,7 +194,7 @@ export class ComponentFixture<T> {
|
||||
*/
|
||||
getDeferBlocks(): Promise<DeferBlockFixture[]> {
|
||||
const deferBlocks: DeferBlockDetails[] = [];
|
||||
const lView = (this.componentRef.hostView as InternalViewRef<unknown>)._lView;
|
||||
const lView = (this.componentRef.hostView as any)['_lView'];
|
||||
getDeferBlocks(lView, deferBlocks);
|
||||
|
||||
const deferBlockFixtures = [];
|
||||
|
||||
Reference in New Issue
Block a user