* Attaches a view so that it will be dirty checked. * The view will be automatically detached when it is destroyed. * This will throw if the view is already attached to a ViewContainer.
(viewRef: ViewRef)
| 719 | * This will throw if the view is already attached to a ViewContainer. |
| 720 | */ |
| 721 | attachView(viewRef: ViewRef): void { |
| 722 | (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed); |
| 723 | const view = viewRef as InternalViewRef<unknown>; |
| 724 | this._views.push(view); |
| 725 | view.attachToAppRef(this); |
| 726 | } |
| 727 | |
| 728 | /** |
| 729 | * Detaches a view from dirty checking again. |
no test coverage detected