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 [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.