Probably caused by this (from $resource docs): It is important to realize that invoking a $resource object method > immediately returns an empty reference (object or array depending on > isArray). Once the data is returned from the server the existing > reference is populated with the actual data. This is a useful trick since > usually the resource is assigned to a model which is then rendered by the > view. Having an empty object results in no rendering, once the data arrives > from the server then the object is populated with the data and the view > automatically re-renders itself showing the new data. This means that in > most cases one never has to write a callback function for the action > methods.] >
So it may just be a timing coincidence that it works for the one and not for the other. -- 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.
