Is it possible to iterate over objects and check their properties?
{
Obj1 : { visible : true, value : 2}
Obj2 : { visible : false, value : 4}
Obj3 : { visible : true, value : 6}
}
HTML:
<ul ng-show="data.templates.attachments">
<li ng-repeat="(key, value) in data.templates.attachments | filter : value.visible">{{key}}</li>
</ul>
If I only want to display the keys that are visible, this code works perfectly. However, I also want to hide the ones that are invisible.