No me funciona cuando pongo:
const headers = new Headers({"Content-Type":"application/json"});
return this.http.post(
this.API_ENDPOINT+'/lugares.json',
lugar,
{headers:headers}
);
Sin embargo, si que me funciona con:
const headers = new Headers({"Content-Type":"application/json"});
return this.http.post(
this.API_ENDPOINT+'/lugares.json',
lugar,
{headers:headers}
).subscribe();
Poniendo .subscribe(); se arregla, ¿Por qué funcionó en el vídeo sin .subscribe?

