title: Show element only if value matches in JSON array
body: <p>i am trying to display element only if the <code>uid</code> exist in JSON array:</p>
  
  <p>i've tried it so far:</p>
  
  <pre><code>var app = agular.module('myApp', []);
  app.controller('myCtrl', function () {
      $scope.uid = '10';
      $scope.datas = [{
          'id': '1',
          'name': 'abc'
      }, {
          'id': '2',
          'name': 'xyz'
      }];
  });
  
  
  
  &lt;p ng-if="datas.length | filter:{id: uid}"&gt;ID exist in array&lt;/p&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/jaym0403/USrdt/4/" rel="nofollow">DEMO FIDDLE</a></p>