I have created a plunker here: http://plnkr.co/qbWBFo that shows a form that I am auto filling based on some json (keys). When the user hits submit, I need to access all data that was filled in and create a json like shown below. Obviously if the div named "myform.rows" had static fields I would be able to call $scope.myform.rows. and get all data. Any suggestions? Thank you
UPDATE: The json that I want to get when a user hits submit after filling out all the form fields is something like this:
{
"Date Of Birth": {
"value": "19 May, 1990",
"tag": "a"
},
"Employer": {
"value": "Starbucks",
"tag": "b"
},
"First Name": {
"value": "Jane",
"tag": "a"
},
"Last Name":{
"value": "Doe",
"tag": "c"
},
"Middle Name": {
"value": "K.",
"tag": "c"
},
"Place Of Birth": {
"value": "Houston, Texas",
"tag": "d"
}
}