Here is what I have tried:
<section data-ng-controller="HomeController">
<table ng-repeat="item in servers | unique:'_id.idc'">
<tr>
<td> {{ item._id.idc }} </td>
</tr>
<tr ng-repeat="data in servers | filter:{_id.idc: 'LH5'}: true ">
<td>{{data}}</td>
</tr>
</table>
This is the current output:
LH8
LH5
AMS
If I remove the filter here is some sample from {{ data }}
{"_id":{"cluster":0,"idc":"LH8"},"Physical":{"SumCores":488,"SumMemory":3232},"Virtual":{"SumCores":2,"SumMemory":8}}
{"_id":{"cluster":1,"idc":"LH8"},"Physical":{"SumCores":256,"SumMemory":1024},"Virtual":{"SumCores":232,"SumMemory":469}}
Why is it not filtering correctly? unique works perfectly fine but the single filter does not.
Edit: I've also checked to see if the unique filter was somehow conflicting with it, but it still doesn't work without that filter in place.