my Submit button is outside of the form and i have no idea how to emit the submit event to the form. I tried the following:
@ViewChild('myForm') myForm: any; // binding to my form
clickSubmitButton(): void {
this.myForm.submit();
}
I get the following error: this.myForm.submit is not a function.
submit()supposed to do anyway?