Students using Angularjs are not unfamiliar to ng-repeat, he is used for data circulation, generally used in arrays or objects. But today we used a ng-repeat-start.
Ng-repeat-start, used in conjunction with Ng-repeat-end, specifies the starting element of the loop, the cutoff element of the loop, which means specifying a loop block.
If you simply ng-repeat an array loop and use it in conjunction with a table, you can generally only achieve the following effect.
<TR ng-repeat= "item in arr" > <td>{{item.name}}</td> <td>{{item.sex}}</td> <td >{{item.age}}</td></tr>
But using Ng-repeat-start,ng-repeat-end with the table, you can achieve the following effect
<TR ng-repeat-start= "item in arr" > <td>{{item.name}}</td> <td>{{item.sex}}</td> <td>{{item.age}}</td></tr><tr ng-repeat-end> <td> <table> <thead > <tr> <th class= "has-paddin-left-24 header-config-left-sty" > Company name </th> <th > Company Code </th> <th> Add date </th> <th class= "header-config-right-sty" > Action </th> </tr> </thead> </table> </td></tr>
Angularjs's Ng-repeat-start