-
Notifications
You must be signed in to change notification settings - Fork 6.7k
uib-pagination initial current page #5858
Comments
Please post a Plunker reproduction - this should already be fixed as this is a duplicate of #2956. |
Going to close this as fixed - the fix is in 1.0.0, but not 0.14.3. |
Hi, I'm using 2.0.1 and I'm putting page number in query string and UIB-pagination changes to value to 1. but it's changing to |
If there is a legitimate issue, please post a minimal reproduction in Plunker in a separate issue. |
@jay-gandhi |
I had the same problem and I solved in this way:
|
I was having the same issue after moving from v 0.13.x to 1.3.3. Setting the total items after the current page used to work. I used the solution from @pc3b3r to get round the problem. |
use in the template |
I am experiencing this issue with 2.5.0. |
The trick that helped me is to initialize the totalPages variable with a number bigger than the page size. I used 1000. This will not reset the current page. Hope that helps you too. |
Bug description:
Code that reproduces the issue:
Example:
JS:
angular.controller('myController', function() { this.pager = { currentPage: 3 } })
HTML
<uib-pagination ng-model="vm.pager.currentPage"></uib-pagination>
Then the value in vm.pager.currentPage will be changed to 1 automatically when the controller starts.
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.0
UIBS: 0.14.3
Bootstrap: 3.1.1
The text was updated successfully, but these errors were encountered: