ui-select2
ui-select2 copied to clipboard
Watching of the options dataset not responding to changes #86
+1 fixes #155
Hi, Guys!
Why you do not apply this pull request? Maybe you found some defect in it?
Any news on this?
Hey, please apply this fix! Without this feature your plugin is crap.
+1
+1 I need this too.
Without it, my attempt to initialize the select2 dropdown to a preselected value by setting the ng-model value was failing, because the $watch
doesn't fire when my ng-repeat options values are updated.
Or, if you don't want to assume collection (not sure why you wouldn't on options, but maybe for someone whose options never change):
At least could provide an option to specify that the <select>
options should be watched with $watchCollection
(v1.2+) or passing objectEquality = true
(v1.07)