argos/dmp-frontend/src/app/form/pagination/pagination-service.ts

18 lines
458 B
TypeScript
Raw Normal View History

2017-12-06 17:45:54 +01:00
import { Injectable } from '@angular/core'
@Injectable()
export class PaginationService {
private currentPageIndex: number;
public setCurrentIndex(currentPageIndex: number): void {
this.currentPageIndex = currentPageIndex;
}
public getCurrentIndex():number{
return this.currentPageIndex;
}
public isElementVisible(elementPage: number):boolean {
return elementPage == this.currentPageIndex ; //TODO
2017-12-06 17:45:54 +01:00
}
}