title: How to filter an array using angular js
body: <pre><code>    angular.module('harbinger').
           directive('dossierList', function () {
               return {
                   restrict:"EAC",
                   template:'&lt;div class="Dossier-details" data-ng-repeat="d in model.dossier | filter:{status:"POI"}"&gt;'+
                  '&lt;p&gt;'+
                  '&lt;strong&gt;'+'Dossier ID'+'&lt;/strong&gt;:'+
                  '&lt;small&gt;'+'{{ d.title }}'+'&lt;/small&gt;'+
                  '&lt;/p&gt;'+
                  '&lt;/div&gt;',
  etc........
  </code></pre>
  
  <p>I want to filter the array using status ,i used <code>filter:{status:"POI"}</code>  ,but it throwing error </p>
  
  <p>My json</p>
  
  <pre><code>  [
         {
             "id": "1",
             "status": "POI",
             "title": "West Nile virus - US",
             "dossierId": "000455"
         },
         {
             "id": "2",
             "status": "I",
             "title": "influenza",
             "dossierId": "000455"
         },
         {
             "id": "4",
             "status": "P",
             "title": "corona virus",
             "dossierId": "000455"
         }
      ]
  </code></pre>