Within the controller, there is a variable that monitors the page index (starting at 0) for a paginated table:
var page {
pageNumber: 0;
}
Query: How can I display this pageNumber
variable in the HTML, but always incremented by +1? (since the index=0 page represents the first page and should be displayed as Page 1
)
<input type="text" ng-model="page.pageNumber">
In addition, when the model is updated, the value in the input field should automatically adjust accordingly (incremented by +1).