【发布时间】:2016-05-31 01:15:29
【问题描述】:
订阅中的错误回调未映射到 JSON 槽映射函数!为什么?
this.http.get("/something")
.map((response: any) => response.json())
.subscribe((response: any) => {
// response is body of request
}, (error: any) => {
// error must be mapped again
let error = JSON.parse(error._body);
});
【问题讨论】:
标签: angular angular2-http