I've tried your solution but then it outputs no items. :(

Am Freitag, 30. Januar 2015 16:23:14 UTC+1 schrieb Nicholas Smith:
>
> You need to specify an offset as a starting point in your ng-repeat 
> directive.
>
> <tr ng-repeat="model in list | offset: currentPage*itemsPerPage | 
> limitTo: itemsPerPage">
>
>
> On Friday, January 30, 2015 at 8:41:18 AM UTC-6, Kristijan Pokas wrote:
>>
>> $scope.totalItems = $scope.list;
>>
>> When I output my totalItems in the brackets {{totalItems.length}} then it 
>> outputs 12 (thats the currently number of items).
>>
>> I think the paginator see this as a string and not as a number, because 
>> when I'm giving my totalItems a static number then it outputs the correct 
>> Pagination Numbers (in my example there are 3 pages).
>>
>> How can I convert this in an Int value? I tried with parseInt but it 
>> doesn't work.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to