pagination: ComponentPagination = {
currentPage: 1,
- itemsPerPage: 10,
+ itemsPerPage: 30,
totalItems: null
}
this.loadElements()
}
+ trackByFn (index: number, elem: Video) {
+ return elem.id
+ }
+
private loadElements () {
this.videoService.getPlaylistVideos(this.videoPlaylistId, this.pagination)
.subscribe(({ totalVideos, videos }) => {