I have simple ng-repeat in my view that prints data from objects.
<div
ng-repeat="item in toDoItems |
orderBy: 'createdAt'
track by item.createdAt"
>
<b>Content:</b> {{item.content}}
</div>
The object that I am printing looks like this:
{
"content" : "some content",
"createdAt" : "1459401001460",
"completed" : false
},
{
"content" : "some content",
"createdAt" : "1459401001325",
"completed" : true
}
I only want to print items that have value false in "completed" propery.
I have tried this but it would give me error: ng-repeat only objects with specific property value - custom filter?
ng-show:) below is my answer