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