MCPcopy
hub / github.com/angular/angular / detachView

Method detachView

packages/core/src/application/application_ref.ts:731–736  ·  view source on GitHub ↗

* Detaches a view from dirty checking again.

(viewRef: ViewRef)

Source from the content-addressed store, hash-verified

729 * Detaches a view from dirty checking again.
730 */
731 detachView(viewRef: ViewRef): void {
732 (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);
733 const view = viewRef as InternalViewRef<unknown>;
734 remove(this._views, view);
735 view.detachFromAppRef();
736 }
737
738 private _loadComponent(componentRef: ComponentRef<any>): void {
739 this.attachView(componentRef.hostView);

Callers 1

bootstrapImplMethod · 0.95

Calls 3

warnIfDestroyedFunction · 0.85
detachFromAppRefMethod · 0.80
removeFunction · 0.70

Tested by

no test coverage detected