Observable: Why result not in subscribe() success function if preceded by map()?
问题 I refer to this post which was really helpful to understand Observables, but there is still something I don't get. In the plunker it refers to, I changed the "src/myfreinds.ts" to see a bit what happen and added some console log: First I left it as the same: export class FriendsList{ result:Array<Object>; constructor(http: Http) { console.log("Friends are being called"); http.get('friends.json') .map(response => { console.log("map"); console.info(response); response.json(); //MISTAKE WAS HERE