restructure entries pages, last comments
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user