Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Allow Map.values in ng-repeat #397

Closed
@achatham

Description

@achatham

Often the natural way to store data is in a Map, and I'd like to use Map.values in an ng-repeat. ng-repeat has support for Iterable, but HashMap.values creates a new object on each call, so it fails the identical() check used in $watch. This leads to a $digest loop. $watch should be robust to this.

If this isn't possible, it would be nice if $digest loops noticed that they were caused by the underlying collection changing object ids and printed a less confusing error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions