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
drjokepu wants to merge 1 commit into
angular:masterfrom
drjokepu:select-infdig
Closed

drjokepu wants to merge 1 commit into
angular:masterfrom
drjokepu:select-infdig

Conversation

@drjokepu

@drjokepu drjokepu commented Oct 7, 2014

Copy link
Copy Markdown

... 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

caitp commented Oct 7, 2014

Copy link
Copy Markdown
Contributor

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

@Narretz

Narretz commented Jun 5, 2015

Copy link
Copy Markdown
Contributor

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