title: How to exclude some fields from filtering using angular js
body: <p>My json:</p>
  
  <pre><code>name : 'name1'
  age : '16'
  error : 'some text etc'
  address : 'adress details '
  etc
  </code></pre>
  
  <p>My filter:</p>
  
  <pre><code>&lt;div ng-repeat="datalist in datalists | filter:searchquery"&gt;
  name : {{ name}} etc
  &lt;/div&gt;
  &lt;input type="text"  value="Search" ng-model="searchquery"&gt;
  </code></pre>
  
  <p>Here I don't want to filter error details, error may be a list of objects sometimes.<br>
  How can I exclude error field?</p>
  
  <p>I've tried:</p>
  
  <pre><code>&lt;div ng-repeat="datalist in datalists | filter:searchquery &amp;&amp; !error"&gt;
  </code></pre>
  
  <p>but that's not working.</p>
  
  <p>Please give me suggestions on how to fix this.</p>