constructor(http:HttpClient){
console.log(http);
http.get<Object[]>("http://localhost:3000/flavio/photos").subscribe(photo =>{
this.photos=photo;
});
}
vs
constructor(http:HttpClient){
console.log(http);
http.get<Object[]>("http://localhost:3000/flavio/photos").subscribe(function(photo){
this.photos = photo;
console.log(this.photos);
});
}