MCPcopy
hub / github.com/angular/angular / resetForm

Method resetForm

packages/forms/src/directives/ng_form.ts:358–361  ·  view source on GitHub ↗

* @description * Resets the form to an initial value and resets its submitted status. * * @param value The new value for the form.

(value: any = undefined)

Source from the content-addressed store, hash-verified

356 * @param value The new value for the form.
357 */
358 resetForm(value: any = undefined): void {
359 this.form.reset(value);
360 this.submittedReactive.set(false);
361 }
362
363 private _setUpdateStrategy() {
364 if (this.options && this.options.updateOn != null) {

Callers 5

onResetMethod · 0.95
directives_spec.tsFile · 0.80
onResetFunction · 0.80

Calls 2

resetMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected