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 ng-repeat="list in lists">{{list[id].title}}</p>
What I want to do is basically
<p ng-repeat="list in lists if list[id].selected">{{list[id].title}}</p>
Of course, on the second line I am getting an error. Any advice on this?
Thank you.