When working with PHP, we often use name="skills[]" to retrieve data from a form as an array. How can this be achieved in AngularJS? For example, in PHP:
<input type="text" name="skills[]" />
I am attempting to achieve the same functionality in AngularJS but encountering syntax errors. My attempt looks like this:
Here is my AngularJS code:
<input type="text" name="skillname" required data-ng-model="c.skills[].skillname" class="small">
<input type="text" name="skillname" required data-ng-model="c.skills[].skiilname" class="small">
Any assistance would be greatly appreciated. Thank you.