Thanks to visit codestin.com
Credit goes to bennadel.github.io

Using A Compound Track-By Expression With ngRepeat In AngularJS

You have {{ $scope.friends.length }} friends and {{ $scope.enemies.length }} enemies.