Hi Sander,
thanks for replying back..

So how do i convert this to "data property"?


On Monday, October 10, 2016 at 10:38:10 PM UTC-4, Sander Elias wrote:
>
> Hi Dawg,
>
>
> on php you are sending out your content, without putting it inside a data 
> attribute. The json that goes down the line looks like this:
>
> [
>     { 'userID': '1', 'userName': 'user1', 'password': 'pass1' },
>     { 'userID': '2', 'userName': 'user2', 'password': 'pass2' },
>     { 'userID': '3', 'userName': 'user3', 'password': 'pass3' },
>     { 'userID': '4', 'userName': 'user4', 'password': 'pass4' },
>     { 'userID': '5', 'userName': 'user5', 'password': 'pass5' }
> ]
>
>
> So that is what is in your `response.json()` there is no `data` property 
> anywhere. When you read from that and ask for a `data` property, you will 
> get undefined.
>
> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to