formSubmit
Description
called when the form submits
event parameter:
event.formValue: value of the form
event.formStatus: status of the value
event parameter type is NgMatFormSubmitModal
Example:
onformSubmit(event: NgMatFormSubmitModal) {
  //Other operations here...
  console.log({formValue: event.formValue,
  formStatus: event.formStatus});
}<ng-mat-forms [Fields]='ngMatFormFields' 
[options]='ngMatFormsOptions' 
(formSubmit)="onformSubmit($event)"></ng-mat-forms>Last updated
Was this helpful?