I'm working on a "Contacts" form in Angular that should:
-Allow user to dynamically add and remove a contact entry.
-A single contact entry will have an input for each of the following:
*first name
*last name
*phone number
-Each contact can have an arbitrary number of phone numbers, so these inputs can be dynamically added or removed by user, similar to the parent contact item.
-All form data can be captured/registered from a single 'submit' button that handles the entire form, instead of having to press 'add' on each individual contact item.
In a nutshell, there can be an arbitrary number of contacts, and each contact can have an arbitrary number of phone numbers, and there should be only one 'submit' button for all data.
Is this possible in Angular? I know how to achieve this with Jquery but am having trouble understanding how this would be done with Angular. I've seen solutions that approximate what I'm looking for, but most of them include the addition of only a single input (instead of a set of inputs), and none of them have the single submit button functionality.
Would prefer not to have to use Jquery. Any suggestions?
Thanks!