MCPcopy Index your code
hub / github.com/angular/components / detachBackdrop

Method detachBackdrop

src/cdk/overlay/overlay-ref.ts:504–511  ·  view source on GitHub ↗

Detaches the backdrop (if any) associated with the overlay.

()

Source from the content-addressed store, hash-verified

502
503 /** Detaches the backdrop (if any) associated with the overlay. */
504 detachBackdrop(): void {
505 if (this._animationsDisabled) {
506 this._backdropRef?.dispose();
507 this._backdropRef = null;
508 } else {
509 this._backdropRef?.detach();
510 }
511 }
512
513 /** Toggles a single CSS class or an array of classes on an element. */
514 private _toggleClasses(element: HTMLElement, cssClasses: string | string[], isAdd: boolean) {

Callers 3

detachMethod · 0.95
dismissMethod · 0.80
closeMethod · 0.80

Calls 2

disposeMethod · 0.65
detachMethod · 0.65

Tested by

no test coverage detected