change items per page pagination angularjs

JavaScript
<tr ng-repeat="country in countries.slice((currentPage -1) * itemsPerPage, currentPage * itemsPerPage) "> 
Source

Also in JavaScript: