title: How to print array object in table row using nested ng-repeat in angular.js dynamically?
body: <p>I am using angular.js for font-end and node.js for server side.</p>
  
  <p>Now, I am having some list of values in array randomly.</p>
  
  <p>Html code :</p>
  
  <pre><code>&lt;html ng-app='app' ng-controller='mainController'&gt;
  
  &lt;head&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div class="container"&gt;
  
          &lt;div class="jumbotron"&gt;
              &lt;table&gt;
                  &lt;tr ng-show="reports.length!=0" ng-repeat="report in reports"&gt;
  
                      &lt;td class="tblheadcol"&gt;{{report.first_name}}&lt;/td&gt;
                      &lt;td class="" style="padding-left:10px;"&gt;{{report.emp_id}}&lt;/td&gt;
                      &lt;td class="" style="padding-left:10px;"&gt;{{report.month_calendar_days}}&lt;/td&gt;
                      &lt;td class="" style="padding-left:10px;"&gt;{{report.pay_days}}&lt;/td&gt;
                      &lt;td class="" style="padding-left:10px;"&gt;{{report.paid_days}}&lt;/td&gt;
                      &lt;td ng-show="$index &gt; 4" ng-repeat="val in report" style="padding-left:10px;"&gt;{{val}}&lt;/td&gt;
  
                  &lt;/tr&gt;
  
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;pre&gt;{{ cleanData | json}}&lt;/pre&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Controller code :</p>
  
  <pre><code>angular.module('app', [])
  
  .controller('mainController', ['$scope', '$filter', function($scope, $filter) {
  $scope.reports = [{"emp_id":"10001","first_name":"siva","status":1,"month_calendar_days":29,"pay_days":29,"paid_days":21,"salary_head_value1":0,"salary_head_value2":7550,"salary_head_value3":1600,"salary_head_value4":1800,"salary_head_value5":345,"salary_head_value6":6400,"salary_head_value7":5000,"salary_head_value8":31955,"salary_head_value9":1250,"salary_head_value10":12000,"salary_head_value11":6000,"salary_head_value12":47900,"salary_head_value13":15945,"salary_head_value14":4000,"salary_head_value15":2400},{"emp_id":"10002","first_name":"naren","status":1,"month_calendar_days":29,"pay_days":29,"paid_days":21,"salary_head_value1":15501,"salary_head_value2":7551,"salary_head_value3":1601,"salary_head_value4":1801,"salary_head_value5":346,"salary_head_value6":6401,"salary_head_value7":5001,"salary_head_value8":31957,"salary_head_value9":1251,"salary_head_value10":12001,"salary_head_value11":6001,"salary_head_value12":47907,"salary_head_value13":15950,"salary_head_value14":4001,"salary_head_value15":2401},{"emp_id":"10003","first_name":"Bhaki","status":1,"month_calendar_days":29,"pay_days":29,"paid_days":21,"salary_head_value1":15502,"salary_head_value2":7552,"salary_head_value3":1602,"salary_head_value4":1802,"salary_head_value5":347,"salary_head_value6":6402,"salary_head_value7":5002,"salary_head_value8":31959,"salary_head_value9":1252,"salary_head_value10":12002,"salary_head_value11":6002,"salary_head_value12":47914,"salary_head_value13":15955,"salary_head_value14":4002,"salary_head_value15":2402}];
  }]);
  </code></pre>
  
  <p>Output:</p>
  
  <p><a href="https://i.stack.imgur.com/j14z8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j14z8.png" alt="enter image description here"></a></p>
  
  <p>Expected Result :</p>
  
  <p>In the above output i want to print the marked result in sequence order as per the array in controller.</p>
  
  <p>Then first five field code </p>
  
  <pre><code>    &lt;td class="tblheadcol"&gt;{{report.first_name}}&lt;/td&gt;
      &lt;td class="" style="padding-left:10px;"&gt;{{report.emp_id}}&lt;/td&gt;
      &lt;td class="" style="padding-left:10px;"&gt;{{report.month_calendar_days}}&lt;/td&gt;
      &lt;td class="" style="padding-left:10px;"&gt;{{report.pay_days}}&lt;/td&gt;
      &lt;td class="" style="padding-left:10px;"&gt;{{report.paid_days}}&lt;/td&gt;
  </code></pre>
  
  <p>should not be change and remaining <code>&lt;td ng-show="$index &gt; 4" ng-repeat="val in report" style="padding-left:10px;"&gt;{{val}}&lt;/td&gt;</code> </p>
  
  <p>should use in ng-repeat.</p>