MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/snack-bar/snack-bar-ref.ts:53–59  ·  view source on GitHub ↗
(
    containerInstance: MatSnackBarContainer,
    private _overlayRef: OverlayRef,
  )

Source from the content-addressed store, hash-verified

51 private _dismissedByAction = false;
52
53 constructor(
54 containerInstance: MatSnackBarContainer,
55 private _overlayRef: OverlayRef,
56 ) {
57 this.containerInstance = containerInstance;
58 containerInstance._onExit.subscribe(() => this._finishDismiss());
59 }
60
61 /** Dismisses the snack bar. */
62 dismiss(): void {

Callers

nothing calls this directly

Calls 1

_finishDismissMethod · 0.95

Tested by

no test coverage detected