filter and orderBy should also work with objects in ngRepeat #8458
Description
filter
and orderBy
should work with objects within ngRepeat
. My use case for this, I have already written recently in #1286, but the issue only refers to oderBy
and has previously been rejected seemingly because no concrete use case has been found for this.
Here is my use case where I absolutely need an object instead of an array:
I'm currently developing a real-time browser game with AngularJS, in which I have a room list. To update individual entries in this list, the server sends a notification with the new version of this single entry when it changes. Thus, a single entry can be by ID, provided by the server, updated, I need to use an object instead of an array.
I would like to sort these entries with AngularJS, which, however, currently not working. I would be happy if this feature will be implemented soon. Otherwise, I had to write such a function myself, which I however come back in the boilerplate code hell.
A support of objects in filter
and orderBy
of AngularJS for me would be really helpful as I would otherwise have to try myself to implement such a function.