title: how to add new row data in current json array angularjs
body: <p>i have added new row but i want update new row data also in database but there is no updated data how to get new row data also add address json array</p>
  
  <pre><code>     &lt;tr  ng-repeat="x in Profile.addresses"&gt;
         &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.site_name ' name='site_name'&gt;&lt;/td&gt;
         &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.street_address ' name='street_address'&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.city ' name='city'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.state ' name='state'&gt;&lt;/td&gt;
   &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.country ' name='country'&gt;&lt;/td&gt;
  </code></pre>
  
  <p>
          </p>
  
  <pre><code>    &lt;tr ng-repeat="lines in array"&gt;
  
   &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.site_name ' name='site_name'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.street_address ' name='street_address'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.city ' name='city'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.state ' name='state'&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.country ' name='country'&gt;&lt;/td&gt;
   &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.zip_code ' name='zip_code'&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='x.phone_number ' name='phone_number'&gt;&lt;/td&gt;
  
          &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>    &lt;div class="col-md-2"&gt;
  
  &lt;a href="" data-toggle="tooltip" title="Add Address" ng-click="addRow()"&gt;&lt;i class="fa fa-plus fa-2x cust_primary" aria-hidden="true"&gt;
  </code></pre>
  
  <p>
    </p>
  
  <p><a href="https://i.stack.imgur.com/r3uV4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r3uV4.jpg" alt="enter image description here"></a></p>