In angular 5.2.x for http get and post I had this code:
post(url: string, model: any): Observable { return this.http.post(url, model) .map(
For reading full response in Angular you should add the observe option:
{ observe: 'response' }
return this.http.get(`${environment.serverUrl}/api/posts/${postId}/comments/?page=${page}&size=${size}`, { observe: 'response' });