how to get array last index + 1 using ng-repeat directive ?? dynamic 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>