[Solved] HTTP call using Observable not working


You need to return the response.json() if you are using Observable

 return this.http.post(this.newOrderUrl, {order: order}, this.options)
   .map((response: Response) => response.json()
 );

and in your component, call using subscribe()

this._myservice.placeOrder('somestring').subscribe((orders: any) => {
});

1

solved HTTP call using Observable not working