I am creating template driven form by following this guide: https://angular.io/guide/forms
I need array of inputs e.g.
<input
*ngFor="let screenshot of screnshots"
[(ngModel)]="screenshot.id"
type="text"
name="screenshots[]" />
But in {{form.value}}, it is showing just one input value instead of multiple.
I want output of {{form.value}} like this : {screenshots:[1, 2, 3]}
I need this only in the form of array.
is it possible to implement in such way? or what is the best solution to achieve this goal?