I am attempting to implement a select tag paging feature using the code below:
<select ng-change="params.page(page)" ng-model="page" ng-options="page.number as page.number for page in pages"></select>
However, I noticed that when I incorporate this code:
<select ng-change="params.page(page)" ng-model="page" ng-options="page.number as page.number group by page.type for page in pages"></select>
I found out that the previous and next pages (found in pages.type) are also being included in the pages array.
So my question is, how can I resolve this issue? Is there a way to create a separate array containing only actual pages or filter the pages array based on specific types?