Did you mean .subscribe() - is not required for Angular 4.
this.http.get(URL).subscribe(data=>{this.results.data})
this.results = this.http.get(URL)Are these 2 same? I think i get error that way. In my issue, above, request is sent on first click and returned back, only that it is not sent back to front page. I can see it logged in service but not back in component. I thought bug is on the front end code somewhere. On Thursday, August 24, 2017 at 10:29:29 PM UTC-4, Sander Elias wrote: > > Hi Lj, > > Probably there is something off in the way you have wired up processing > the results of the get. Normally you never use subscribe in a service. > > Regards > Sander > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
