-
Notifications
You must be signed in to change notification settings - Fork 356
ng-repeat is applied multiple times when placed inside a ui-map-info-window #236
Comments
Seems to be working currently. Feel free to comment/reopen if we still fail lol. |
This still appears to be broken. Even worse, the number of renderings of each element in the ng-repeat array increases exponentially every time open() is called on the infoWindow. I'm seeing the same behavior in my app. |
It looks like it's caused by the info window being recompiled every time it's opened, on this line: I don't have time to look into this until possibly this weekend or Monday, but my question is: |
AngularUI is currently undergoing a restructure. This project will no longer hold the codebase, can you please relocate this to https://github.com/angular-ui/ui-map (after confirming it's still necessary with the latest code)? |
Just putting this here for others: Just ran into this bug (using latest stable Angular and ui-map from master). Commented out the compile line as suggested by @shaungrady and it works properly now. (This suggests the whole decorating of the .open method can be taken out.) |
This repo is discontinued. The project has been relocated here: https://github.com/angular-ui/ui-map Please reopen this issue there if it is still relevant. |
The bug can be reproduced here:
http://alexbirkett.github.com/angular-ui.github.com/index.html
An array contains four items:
$scope.properties = [{name: "test"}, {name:"test2"}, {name:"test3"}, {name:"test4"}];
each item is rendered four times by ng-repeat e.g:
test
test
test
test
test2
test2
test2
test2
test3
test3
test3
test3
test4
test4
Each item is rendered five times if the array contains five items etc.
The text was updated successfully, but these errors were encountered: