I have an existing reactive form which works when not using angular2-tinymce. I am replacing a textarea with angular2-tinymce, If I don't provide it with a formControl attribute then the form will load, when I add the formControl attribute I get a console error:
ng:///AppModule/MinutesFormComponent.ngfactory.js:311
ERROR Error: Cannot find control with unspecified name attribute
at _throwError (vendor.bundle.js:31589)
at setUpControl (vendor.bundle.js:31497)
at FormControlDirective.ngOnChanges (vendor.bundle.js:34295)
at checkAndUpdateDirectiveInline (vendor.bundle.js:15571)
at checkAndUpdateNodeInline (vendor.bundle.js:17072)
at checkAndUpdateNode (vendor.bundle.js:17015)
at debugCheckAndUpdateNode (vendor.bundle.js:17872)
at debugCheckDirectivesFn (vendor.bundle.js:17813)
at Object.eval [as updateDirectives] (ng:///AppModule/MinutesFormComponent.ngfactory.js:384)
at Object.debugUpdateDirectives [as updateDirectives] (vendor.bundle.js:17798)
I have an existing reactive form which works when not using angular2-tinymce. I am replacing a textarea with angular2-tinymce, If I don't provide it with a formControl attribute then the form will load, when I add the formControl attribute I get a console error:
Here is the form builder:
here is the slimmed down html (I have removed all the classes and divs):
Can I get some guidance on what is causing the error and is there anything I am doing wrong or that I can change to get it working?
Thanks
EDIT:
A more experienced colleague just pointed out the blindingly obvious, that I wasn't referencing the form control correctly in the form.
Apologies for wasting your time.