MCPcopy Create free account
hub / github.com/angular/angular / detachView

Method detachView

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

* Detaches a view from dirty checking again.

(viewRef: ViewRef)

Source from the content-addressed store, hash-verified

740 * Detaches a view from dirty checking again.
741 */
742 detachView(viewRef: ViewRef): void {
743 (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);
744 const view = viewRef as InternalViewRef<unknown>;
745 remove(this._views, view);
746 view.detachFromAppRef();
747 }
748
749 private _loadComponent(componentRef: ComponentRef<any>): void {
750 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