Skip to content
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.

filter and orderBy should also work with objects in ngRepeat #8458

Closed
@nodecode

Description

@nodecode

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions