export abstract class AbstractVideoList implements OnInit {
pagination: ComponentPagination = {
currentPage: 1,
- itemsPerPage: 25,
+ itemsPerPage: 10,
totalItems: null
}
sort: SortField = '-createdAt'
protected abstract currentRoute: string
abstract titlePage: string
+
+ protected otherParams = {}
+
private loadedPages: { [ id: number ]: boolean } = {}
abstract getVideosObservable (): Observable<{ videos: Video[], totalVideos: number}>
page: this.pagination.currentPage
}
- return params
+ return Object.assign(params, this.otherParams)
}
protected loadRouteParams (routeParams: { [ key: string ]: any }) {