I have a simple form that looks like this
and need to
Found out how to do it:
.ngSubmit.emit()
.form.valid
Example:
Edit: As @yuriy-yakovenko has pointed out, you should add in your component code the following:
@ViewChild('documentEditForm') documentEditForm: FormGroupDirective;
And don't forget to import the FormGroupDirective
if you haven't done yet