How to use dynamic variables in ngModel?
I am trying to use the code below but the following error appears:
Define array in component and keep pushing in it.
export class AppComponent { qtd:any[] = {}; }
Then, update your template like
{{ qtd | json}}
In this all your dynamic models will be in qtd array
Plunker
Hope that helps!