getData(page): Observable<any> {
const url = `${this.url}?page=${page}`;
return this.http.get<any>(url, {observe: 'response'});
}
loadData(page) {
this.feedService.getData(page)
.subscribe(data => {
console.log(data.headers.keys());
console.log(data.headers.get('X-Pagination-Page-Count'));
});
}
'access-control-expose-headers' : '<header-name>'
на API.