如何使用ng-repeat指令获取数组最后一个索引+ 1? 动态Profile.addresses [2] .site_name
<tr ng-repeat="lines in array">
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].site_name ' name='site_name'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].street_address ' name='street_address'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].city ' name='city'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].state ' name='state'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].country ' name='country'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].zip_code ' name='zip_code'>
</td>
<td>
<input type="text" class="form-control" id="inputDefault" ng-model=' Profile.addresses[2].phone_number ' name='phone_number'>
</td>
</tr>