in my index.html I tried
<li ng-repeat="friend in user.relationship">{{friend.name}}</li>
and this is my json look like
var user = [
{
'uId': 1,
'name': 'me',
'relationship':
[
{'uId':2,
'name': 'Jeremy',
'tabs':[{'tabId':1}],
'tasks':[{'name':'Im Jeremy Lin'}]
}
]
}
]
I even tried <li ng-repeat="friend in user[0].relationship">{{friend[0].name}}</li>
It should be
<li ng-repeat="friend in user[0].relationship">{{friend.name}}</li>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With