I would like to filter the msgs data by not displaying some message of corresponding userid. In the example below it only shows the message from Paul (userid: 11) & Kate (userid:12).
What I would like to do is to filter more than just one userid. Something like :
{userid:["!10", "!11"]};
which should display only messages from userid 12 (In this case).
Plunker : http://plnkr.co/edit/464FVab41YoV2BGFkgWt?p=preview
$scope.msgs = [{name:"John", userid:10, text:"Hello"}, {name:"Paul", userid:11, text:"hi"}, {name:"Kate", userid:12, text:"Hey"}];
$scope.filter = {userid:"!10"};
<div ng-repeat="msg in msgs | filter:filter">
{{msg.name}} ({{msg.userid}}) : {{msg.text}}
</div>