Hi …,

Probably your userFactory.getUsers() will return a $q promise 
<https://docs.angularjs.org/api/ng/service/$q>. Promises are interfaces 
that are able to tackle the difference between sync and async programming.
you need to add an .then(..) to your controller.

something like this:

userFactory.getUsers().then(function (data) {
   $scope.users = data;
}

It might vary a bit, because I’m not sure how your getUsers return its 
data, but it should get you going.

With kind 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