Hi Greg,

In the debugger screen, service is an 'live' object, so it gets updated. 
the data is not an object (at that point) and is logged as such.
Have a look at the $q <https://docs.angularjs.org/api/ng/service/$q> service 
on how promises work in angular.

Also, try avoiding injecting $http into a controller. Build another 
service, that returns what you need. You can inject Services into services 
just fine.

Regards
Sander


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to