|
8 | 8 |
|
9 | 9 | import {ChangeDetectorRef} from '../change_detection/change_detector_ref'; |
10 | 10 | import {NotificationSource} from '../change_detection/scheduling/zoneless_scheduling'; |
| 11 | +import type {ApplicationRef} from '../core'; |
11 | 12 | import {RuntimeError, RuntimeErrorCode} from '../errors'; |
12 | | -import {EmbeddedViewRef, ViewRefTracker} from '../linker/view_ref'; |
| 13 | +import {EmbeddedViewRef} from '../linker/view_ref'; |
13 | 14 | import {removeFromArray} from '../util/array_utils'; |
14 | 15 | import {assertEqual} from '../util/assert'; |
15 | 16 |
|
@@ -43,7 +44,7 @@ import {storeLViewOnDestroy, updateAncestorTraversalFlagsOnAttach} from './util/ |
43 | 44 | interface ChangeDetectorRefInterface extends ChangeDetectorRef {} |
44 | 45 |
|
45 | 46 | export class ViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorRefInterface { |
46 | | - private _appRef: ViewRefTracker | null = null; |
| 47 | + private _appRef: ApplicationRef | null = null; |
47 | 48 | private _attachedToViewContainer = false; |
48 | 49 |
|
49 | 50 | get rootNodes(): any[] { |
@@ -349,7 +350,7 @@ export class ViewRef<T> implements EmbeddedViewRef<T>, ChangeDetectorRefInterfac |
349 | 350 | detachViewFromDOM(this._lView[TVIEW], this._lView); |
350 | 351 | } |
351 | 352 |
|
352 | | - attachToAppRef(appRef: ViewRefTracker) { |
| 353 | + attachToAppRef(appRef: ApplicationRef) { |
353 | 354 | if (this._attachedToViewContainer) { |
354 | 355 | throw new RuntimeError( |
355 | 356 | RuntimeErrorCode.VIEW_ALREADY_ATTACHED, |
|
0 commit comments