Answers for "control.registerOnChange is not a function angular"

1

control.registerOnChange is not a function angular

Component code:

public form = new FormGroup({
   ...
   images: new FormArray([....])
})

---------------------------------------------------------
Template code:

<input type="file" multiple formControlName="images" />
  
---------------------------------------------------------
Solution:
Replace formControlName with formArrayName

<input type="file" multiple formArrayName="images" />
Posted by: Guest on July-10-2021

Code answers related to "control.registerOnChange is not a function angular"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language