Hi Achach,

You should read up on how to use promises and async.
The problem is, your service returns a reference to an empty array. 
Re-assigning items in your then callback does not propagate outside your 
service. You are putting a new reference in the items var. This is a pure 
JS problem, and has little to nothing to do with angular or ionic.

try items.concat(success) instead of item = success,

Does that work for you?

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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to