Estou com este erro no angular
ERROR Error: formGroup expects a FormGroup instance. Please pass one in.
Example:
<div [formGroup]="myGroup">
<input formControlName="firstName">
</div>
In your class:
this.myGroup = new FormGroup({
firstName: new FormControl()
});
at Function.ReactiveErrors.missingFormException (forms.js:6347)
at FormGroupDirective._checkFormPresent (forms.js:6852)
at FormGroupDirective.ngOnChanges (forms.js:6623)
at checkAndUpdateDirectiveInline (core.js:12358)
at checkAndUpdateNodeInline (core.js:13886)
at checkAndUpdateNode (core.js:13829)
at debugCheckAndUpdateNode (core.js:14722)
at debugCheckDirectivesFn (core.js:14663)
at Object.eval [as updateDirectives] (EditVisitanteDialogComponent.html:10)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:14648)