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

Method _canClose

src/cdk/dialog/dialog-ref.ts:147–154  ·  view source on GitHub ↗

Whether the dialog is allowed to close.

(result?: R)

Source from the content-addressed store, hash-verified

145
146 /** Whether the dialog is allowed to close. */
147 private _canClose(result?: R): boolean {
148 const config = this.config as DialogConfig<unknown, unknown, DialogContainer>;
149
150 return (
151 !!this.containerInstance &&
152 (!config.closePredicate || config.closePredicate(result, config, this.componentInstance))
153 );
154 }
155}

Callers 2

constructorMethod · 0.95
closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected