Struggling with creating a filter expression.
I am working with an array of documents:
[{title: 'doc1', read: false}
{title: 'doc2', read: false}
{title: 'doc3', read: false}
{title: 'doc4', read: true}
{title: 'doc5', read: false}]
In the view, I currently have
<input type="checkbox" ng-model="filterRead">
<div ng-repeat="doc in documents track by $index | filter: ??? ">
{{doc.title}}
</div>
If the checkbox/filterRead is checked, display all documents without any filter. If unchecked, only show documents where doc.read=false. Having difficulty coming up with the appropriate filter expression.