Here's the HTML code:

...
<tr ng-repeat="model in list | limitTo: itemsPerPage">
            <td><input type="checkbox"></td>
            <td>{{model.id | limitTo : 8 }}</td>
            <td ng-repeat="column in form | filter : {list: true}">
              <span ng-if="column.labelProperty">{{model[column.propertyName
][column.labelProperty] | invoke : column.filter : column.filterParam}}</
span>
              <span ng-if="!column.labelProperty">{{model[column.
propertyName] | invoke : column.filter : column.filterParam}}</span>
            </td>
</tr>
...
<pagination total-items="totalItems" ng-model="currentPage" class=
"pagination-sm" boundary-links="true" first-text="&lsaquo;&lsaquo;" previous
-text="&lsaquo;" next-text="&rsaquo;" last-text="&rsaquo;&rsaquo;" num-pages
="numPages" items-per-page="itemsPerPage">
  </pagination>



Am Freitag, 30. Januar 2015 15:11:15 UTC+1 schrieb Nicholas Smith:
>
> Show me the code / html that displays the items being paged. 
> On Jan 29, 2015 10:38 PM, "Nicholas Smith" <[email protected] 
> <javascript:>> wrote:
>
>> You need to set items-per-page to 5 instead of max-size.
>>
>> See reference at: http://angular-ui.github.io/bootstrap/#/pagination
>>
>>
>>
>> On Thursday, January 29, 2015 at 6:02:57 PM UTC-6, Kristijan Pokas wrote:
>>>
>>> Hej,
>>>
>>> I've a problem with the pagination.
>>> I'm using the Pagination of UI.bootstrap and I have integrated the 
>>> <pagination>-Tag in my template.
>>> In my controller I've defined a 
>>> currentPage=1, 
>>> maxSize=5 and 
>>> totalItems=10.
>>>
>>> <pagination total-items="totalItems" ng-model="currentPage" max-size=
>>> "maxSize" class="pagination-sm" boundary-links="true" first-text=
>>> "&lsaquo;&lsaquo;" previous-text="&lsaquo;" next-text="&rsaquo;" 
>>> last-text="&rsaquo;&rsaquo;" num-pages="numPages">
>>> </pagination>Code hier eingeben...
>>>
>>> The list shows always all items but I want to display only 5 per page.
>>> And the number of pagination numbers stay always on 1.
>>>
>>> Can anyone help me with my problem? :(
>>>
>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "AngularJS" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/zkJe4qlIjXA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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