Sorry cant think of a more valid title. In HTML when we want multiple values for a given name we use this name="foo[]"
attribute.
When the data is posted it comes as an array. What I want is this functionality with ng-model
in angular.
Reason: I have a form that has multiple fields with same name, like in a CV when we write our past experiences.
NB: Before saying this is a duplicate, please read this properly. I have seen valid questions being marked as duplicate and not constructive.