Restructured paging to a ng-view implementation