title: if statement within a ng-repeat directive on Angular.js
body: <p>I am trying to implement an if into a ng-repeat directive but I am having a hard time. my code which work for now is:</p>
  
  <pre><code>&lt;p ng-repeat="list in lists"&gt;{{list[id].title}}&lt;/p&gt;
  </code></pre>
  
  <p>What I want to do is basically</p>
  
  <pre><code>&lt;p ng-repeat="list in lists if list[id].selected"&gt;{{list[id].title}}&lt;/p&gt;
  </code></pre>
  
  <p>Of course, on the second line I am getting an error. Any advice on this?</p>
  
  <p>Thank you.</p>