Using A Compound Track-By Expression With ngRepeat In AngularJS
You have {{ $scope.friends.length }} friends and {{ $scope.enemies.length }} enemies.
{{ person.name }} — ( {{ person.id }} )
friend, yay!
enemy, meh.