8000 fix(select): respect tracking expression when shallow watching arrays of... by drjokepu · Pull Request #9467 · angular/angular.js · GitHub
[go: up one dir, main page]

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

fix(select): respect tracking expression when shallow watching arrays of... #9467

Closed
wants to merge 1 commit into from

Conversation

drjokepu
Copy link
@drjokepu drjokepu commented Oct 7, 2014

... objects in ngOptions

ngOptions does not use the tracking expression when shallow watching array elements passed in to ngOptions. This is a problem if the elements passed in to ngOptions are generated on the fly and while the array elements identical in value, they are different instances; this leads to infinite digest loops. This change attempts to rectify the situation by shallow watching an array of trackFn(values) rather than the array of values themselves.

Closes #9464

… of objects in ngOptions

ngOptions does not use the tracking expression when shallow watching array elements passed in to ngOptions. This is a problem if the elements passed in to ngOptions are generated on the fly and while the array elements identical in value, they are different instances; this leads to infinite digest loops. This change attempts to rectify the situation by shallow watching an array of trackFn(values) rather than the array of values themselves.

Closes angular#9464
@caitp
Copy link
Contributor
caitp commented Oct 7, 2014

See #9466 (comment) --- it will prevent opening unneeded issues on the tracker

@Narretz
Copy link
Contributor
Narretz commented Jun 5, 2015

This was fixed in fc21db8 (>= 1.4.x)

@Narretz Narretz closed this Jun 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing in an a function to the ngOptions array clause that generates elements on the fly results in infinite $digest loop
4 participants
0