I have a list which look like this
[
{ OfficialID:1, name:'test', isActive:false },
{ OfficialID:2, name:'test4', isActive:true },
{ OfficialID:3, name:'test2', isActive:true }
]
now I just want to filter and only show data when isAcitve is true,
and this is my tr of table
<tr ng-repeat="d in dc.officialLeaves | filter:isActive">
<td>{{d.OfficialID}}</td>
</tr>
I think I know I want to use something like this filter:isActive
but what exactly should I do?