Starting off with AngularJS and feeling excited.
I have successfully created a form with two input boxes.
Just below the input boxes, I have added:
<input ng-model="id.todoList" type="text" name="input" placeholder="Enter tasks here">
<input ng-model="id.todoList1" type="text" name="input" placeholder="Enter tasks here">
After entering the values in the inputs,
I managed to store them as an array. Done!
Whenever I click the submit button, the form inputs get pushed into the array.
However, there's one major issue...
If I enter details for 3 users and then try to add more, the previously stored 3 user details also get overwritten.
Any help on how I can fix this?
Here is the fiddler link for reference: Fiddler Link