本文整理汇总了TypeScript中ng-jhipster.JhiParseLinks.parse方法的典型用法代码示例。如果您正苦于以下问题:TypeScript JhiParseLinks.parse方法的具体用法?TypeScript JhiParseLinks.parse怎么用?TypeScript JhiParseLinks.parse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng-jhipster.JhiParseLinks
的用法示例。
在下文中一共展示了JhiParseLinks.parse方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: paginateAclObjectIdentities
protected paginateAclObjectIdentities(data: IAclObjectIdentity[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.queryCount = this.totalItems;
this.aclObjectIdentities = data;
}
示例2: onSuccess
private onSuccess(data, headers) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = headers.get('X-Total-Count');
this.queryCount = this.totalItems;
this.users = data;
}
示例3:
fromDate: this.fromDate, toDate: this.toDate}).subscribe((res) => {
this.audits = res.json();
this.links = this.parseLinks.parse(res.headers.get('link'));
this.totalItems = + res.headers.get('X-Total-Count');
});
示例4: paginateCustomers
private paginateCustomers(data: ICustomer[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.queryCount = this.totalItems;
this.customers = data;
}
示例5: paginateLocations
protected paginateLocations(data: ILocation[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.queryCount = this.totalItems;
this.locations = data;
}
示例6: paginateProdutos
protected paginateProdutos(data: IProduto[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.produtos = data;
}
示例7: paginateTrackingNumbers
protected paginateTrackingNumbers(data: ITrackingNumber[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.queryCount = this.totalItems;
this.trackingNumbers = data;
}
示例8: paginateFornecedors
protected paginateFornecedors(data: IFornecedor[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.fornecedors = data;
}
示例9: paginateProjects
private paginateProjects(data: IProject[], headers: HttpHeaders) {
this.links = this.parseLinks.parse(headers.get('link'));
this.totalItems = parseInt(headers.get('X-Total-Count'), 10);
this.queryCount = this.totalItems;
this.projects = data;
}