This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Generate error when attempting to use filter on objects #9992
Closed
Description
Currently it fails silently if you try to use filter
on objects, as in the example below, because it only supports arrays.
<div ng-repeat="item in object | filter:{display:true}">stuff</div>
I blew a ton of time on this because it's not very intuitive since ng-repeat
supports objects. I fully expect to make the same mistake again. A simple error message would save a world of hurt.