I have an array like this
$scope.mentors = [ {"name":"Jonathan", "status":0},
{"name": "Nathan","status":1},
{"name": "Chris","status":1},
{"name": "Brian","status":0}];
here my view code
<div ng-repeat="m in mentors">
<div ng-if="m.status == '1'">
<div>
{{m.name}}
</div>
</div>
</div>
and my result is : Nathan and Chris
what can I do to just make it show Nathan or Chris it must only show one result only
p/s: already try ng-show="$last" it did not work since Brian status is '0'
limitToin yourng-repeat