I am currently working with a table that uses the ng-repeat attribute to display data fetched from a web service. Initially, I was able to hide the last record by using ng-hide="$last". However, due to an update in the web service, I now need to hide the last 2 records and I am unsure of how to achieve this.
This is what my current code looks like:
<table>
<tr ng-repeat="d in exportData.result" ng-hide="$last">
...code....
</tr>
</table>
Any assistance on how to hide the last 2 records would be greatly appreciated.