title: How to get text box data of a table from a ng-repeat to an array
body: <pre><code>&lt;div&gt;
    &lt;div class="row"&gt;
      &lt;h4 style="margin-left: 45%; color: black; text-decoration: underline"&gt;&lt;b&gt;Inter Equalent Education&lt;/b&gt;&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-4"&gt;
        &lt;div class="form-group"&gt;
          &lt;label&gt;Select Group Name: &lt;span class="text-danger"&gt;*&lt;/span&gt;&lt;/label&gt;
          &lt;select class="form-control" data-ng-model="selintergroup"&gt;
            &lt;option selected="selected" value=""&gt;-Select-&lt;/option&gt;
            &lt;option data-ng-repeat="inter in intergroup" value="{{inter.grp_code}}"&gt;{{inter.grp_name}}&lt;/option&gt;
          &lt;/select&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;table class="table table-bordered"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th&gt;Duration&lt;/th&gt;
          &lt;th&gt;Academic Year&lt;/th&gt;
          &lt;th&gt;Roll No&lt;/th&gt;
          &lt;th&gt;Institue Name&lt;/th&gt;
          &lt;th&gt;Marks Secured&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr data-ng-repeat="p in ipeedata"&gt;
          &lt;td&gt;{{p.edu_dur}}&lt;/td&gt;
          &lt;td&gt;
            &lt;input class="form-control" type="text" data-ng-model="tableinteracayear" maxlength="7" style="text-transform: uppercase" /&gt;&lt;/td&gt;
          &lt;td&gt;
            &lt;input class="form-control" type="text" data-ng-model="tableinterrollno" maxlength="10" style="text-transform: uppercase" /&gt;&lt;/td&gt;
          &lt;td&gt;
            &lt;input class="form-control" type="text" data-ng-model="tableinterinsname" maxlength="75" style="text-transform: uppercase" /&gt;&lt;/td&gt;
          &lt;td&gt;
            &lt;input class="form-control" type="text" data-ng-model="tableintermarks" maxlength="75" style="text-transform: uppercase" /&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
    &lt;%--INTER div--%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>scope.interarr.push({
    duration: scope.ipeedata[0].edu_dur,
    academicyear: scope.tableinteracayear,
    rollno: scope.tableinterrollno,
    institutename: scope.tableinterinsname,
    markssecured: scope.tableintermarks
  })
  </code></pre>
  
  <p>it is showing only 1 row that is entered first in the table,but i want all the rows data into this array</p>