.
return this.http.get("http://localhost:26264/api/news").map((response: Response)=>{
response.json();
});
( ).
Response . :
myJsonifyFunc(response: Response) {
response.json();
// notice there is no return statement!
}
return this.http.get("http://localhost:26264/api/news").map(myJsonifyFunc);
:
.....map((x,y,z) => {...})
x, y, z {...}.
, "return" , void ( , undefined).
.....map((x,y,z) => ...)
, . , ... .
.....map((x,y,z) => ...)
.....map((x,y,z) => {return ...})
, , ... - .
, .