Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

feat(ngRepeat): add support for hash for item in items #2216

Closed
wants to merge 2 commits into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Mar 23, 2013

BREAKING CHANGE:

Default behavior for hg-repeat is to associate the
DOM elements by position rather then by identity.
(Previously it was associate by object identity)

It is considered an error to have two items produce
the same hash key. (This was tolerated before.)

To get the old behavior one can simply add the
$hash call to the hg-repeat expressions:
item in items => $hash(item) for item in items

matsko and others added 2 commits March 19, 2013 22:10
The new method allows to shallow watch collections (Arrays/Maps).
BREAKING CHANGE:

Default behavior for hg-repeat is to associate the
DOM elements by position rather then by identity.
(Previously it was associate by object identity)

It is considered an error to have two items produce
the same hash key. (This was tolerated before.)

To get the old behavior one can simply add the
$hash call to the hg-repeat expressions:
item in items => $hash(item) for item in items
@IgorMinar
Copy link
Contributor

the $watchProp commit needs more tests, few minor changes and we need t discuss the change log that should be part of the change notification

@mhevery
Copy link
Contributor

mhevery commented Mar 30, 2013

closed and replaced by: #2260

@mhevery mhevery closed this Mar 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants