Thank you Sander, I thought it is like that. I will use data.data...
-- a bit of off-topic --- What is the most common way in REST api to name the result? - data - payload - response On Tue, May 12, 2015 at 11:30 AM, Sander Elias <[email protected]> wrote: > Hi Dmitry, > > Angulars $http returns a promise that will get resolved with the complete > http response object: > > The response object has these properties: > > - data – {string|Object} – The response body transformed witSo you > don't h the transform functions. > - status – {number} – HTTP status code of the response. > - headers – {function([headerName])} – Header getter function. > - config – {Object} – The configuration object that was used to > generate the request. > - statusText – {string} – HTTP status text of the response > > So, you don't have double array's at all, it is just that the data you put > in the data part is called data, wich might be a tad confusing :-) > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/j7aL-4H9vMA/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- Dmitry Shevchenko. +47 47 970 332 [email protected] skype: dmitryshevchenko -- 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.
