Client: fix pagination component
authorChocobozzz <florian.bigard@gmail.com>
Wed, 6 Jul 2016 17:56:23 +0000 (19:56 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 6 Jul 2016 17:56:23 +0000 (19:56 +0200)
client/src/app/videos/video-list/video-list.component.html

index 00392a81f166cbf5a73e411b1c29523e4476ec22..52abc3dc2e6ef61b1007cc661084b7b164e3e66e 100644 (file)
@@ -15,6 +15,6 @@
 </div>
 
 <pagination
-  [totalItems]="pagination.total" [itemsPerPage]="pagination.itemsPerPage" [(ngModel)]="pagination.currentPage"
-  (ngModelChange)="getVideos()"
+  [totalItems]="pagination.total" [itemsPerPage]="pagination.itemsPerPage" [maxSize]="6" [boundaryLinks]="true" [rotate]="false"
+  (ngModelChange)="getVideos()" [(ngModel)]="pagination.currentPage"
 ></pagination>