24 lines
494 B
TypeScript
24 lines
494 B
TypeScript
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);
|
|
}
|
|
|
|
}
|