Ответ на консоли отличается от предварительного просмотра в сети - PullRequest
0 голосов
/ 22 мая 2019

Когда я даю console.log (ответ), это появляется:

enter image description here

Но когда я получаю доступ к запросу в предварительном просмотре сети, ответ выглядит так:

enter image description here

Модель:

export class UserId {
  id: number
  user: string
  name: string 
  email: string
  photo: string
  last_login: string
  password: string
  status: number
  is_admin: number
  dt_created: string
}

Услуги:

getUserById(id: number) {
        return this.service.getUserById(`${this.endpointGetUserId}/${id}`)
        .map((response) => {
            return response.user;
        });
    }

Http:

getUserById(path: string) {
        return this.http.get<UserId>(this.baseUrl  + path);
    }
...