Sorry, but I already have a question. Do I need an import to use tap? Thank 
You !!!


On Sunday, January 27, 2019 at 1:28:48 AM UTC-6, Sander Elias wrote:
>
> Hi Ronald,
>
> Don’t use toPromise if there isn’t a real need for it. Learn observables a 
> bit, and your life will get better.
>
> try this:
>
> this.http.get<Employee[]>(this.rootURL + '/Employees').pipe(
>    tap(data => console.log('incomming data",data),
>    tap(data => this.list = data)
>  ).subscribe()
>
> If you have any more questions don’t hesitate to ask,
> 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.

Reply via email to