restructure entries pages, last comments

This commit is contained in:
2021-10-06 09:49:16 +02:00
parent 4c69a9b177
commit ac7e46c627
22 changed files with 205 additions and 271 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Component, OnInit } from '@angular/core';
import { EntriesService } from '../../services/entries.service';
@Component({
selector: 'page-last',
templateUrl: './last.page.html'
})
export class PageLast implements OnInit {
boundFetch: Function;
constructor(private entriesService: EntriesService) { }
ngOnInit(): void {
this.boundFetch = this.fetch.bind(this);
}
fetch(page: number, size: number) {
return this.entriesService.getLastComment(page,size);
}
}