I inserted this code snippet within my <li>
tag (line 5) but it displayed as blank.
| filter: {tabs.tabId: currentTab}
To view a demo of my app, visit http://jsfiddle.net/8Ub6n/8/
This is the HTML code:
<ul ng-repeat="friend in user">
<li ng-repeat="relation in friend.relationship">{{relation.name}} ({{relation.points}} points)</li>
</ul>
And here is the JavaScript code:
$scope.user = [{
'uId': 1,
'name': 'Joe',
'relationship': [{
'uId': 2,
'name': 'Jeremy',
'tabs': [{
'tabId': 1
}],
'tasks': [{
'name': 'Im Jeremy Lin'
}],
'points': 50
},{
'uId': 2,
'name': 'Michael',
'tabs': [{
'tabId': 1
}],
'tasks': [{
'name': 'Im Jeremy Lin'
}],
'points': 80
}]
}]
})
I'm unsure of what might be causing the issue..