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

Method dismiss

src/material/bottom-sheet/bottom-sheet.ts:130–134  ·  view source on GitHub ↗

* Dismisses the currently-visible bottom sheet. * @param result Data to pass to the bottom sheet instance.

(result?: R)

Source from the content-addressed store, hash-verified

128 * @param result Data to pass to the bottom sheet instance.
129 */
130 dismiss<R = any>(result?: R): void {
131 if (this._openedBottomSheetRef) {
132 this._openedBottomSheetRef.dismiss(result);
133 }
134 }
135
136 ngOnDestroy() {
137 if (this._bottomSheetRefAtThisLevel) {

Callers 3

openMethod · 0.45
ngOnDestroyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected