Skip to content

Add forEach to QueryList #6314

@Alxandr

Description

@Alxandr

Currently, the "best" way to loop through the result of a QueryList (as done in the ui-tabs sample at http://plnkr.co/edit/9E7T5XyLvn0SNQTOrVrJ?p=preview) is to use .toArray().forEach(). Here .toArray() copies the original array before allowing you to iterate through it. At least that's what I'm seeing when I'm running through the code.

Also, since it supports map, reduce and filter already, I think forEach should generally be available too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions