I am dealing with a standard key value array
cost: {[ key: string ] : number};
I am exploring ways to configure a dynamic input field
<input name="costCat" [(ngModel)] = "???"/>
<input name="costVal" [(ngModel)] = "???"/>
that can be increased automatically using a button based on the number of cost categories.
The objective is to achieve an object like this:
'{"everyone":"10"}'
or even something similar to this
'{"young":"free", "adult":10, "elderly":"free"}'