* 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)
| 730 | * This will throw if the view is already attached to a ViewContainer. |
| 731 | */ |
| 732 | attachView(viewRef: ViewRef): void { |
| 733 | (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed); |
| 734 | const view = viewRef as InternalViewRef<unknown>; |
| 735 | this._views.push(view); |
| 736 | view.attachToAppRef(this); |
| 737 | } |
| 738 | |
| 739 | /** |
| 740 | * Detaches a view from dirty checking again. |