no value accessor for form control with unspecified name attribute primeng code example
Example: No value accessor for form control with unspecified name attribut
I fixed this error by adding the name="fieldName" ngDefaultControl
attributes to the element that carries the [(ngModel)] attribute.