control registeronchange is not a function angular

Solutions on MaxInterview for control registeronchange is not a function angular by the best coders in the world

showing results for - "control registeronchange is not a function angular"
Lennart
22 Jul 2016
1Component code:
2
3public form = new FormGroup({
4   ...
5   images: new FormArray([....])
6})
7
8---------------------------------------------------------
9Template code:
10
11<input type="file" multiple formControlName="images" />
12  
13---------------------------------------------------------
14Solution:
15Replace formControlName with formArrayName
16
17<input type="file" multiple formArrayName="images" />