]>
Commit | Line | Data |
---|---|---|
2a845540 TL |
1 | import { HttpResponse } from '@angular/common/http'; |
2 | import { Injectable } from '@angular/core'; | |
3 | ||
4 | @Injectable({ | |
5 | providedIn: 'root' | |
6 | }) | |
7 | export class CdTableServerSideService { | |
8 | /* tslint:disable:no-empty */ | |
9 | constructor() {} | |
10 | ||
11 | static getCount(resp: HttpResponse<any>): number { | |
12 | return Number(resp.headers?.get('X-Total-Count')); | |
13 | } | |
14 | } |