I have a div with a chart created outside of Angular. However, the div is inside ng-repeat, and when the update area is updated, the chart is cleared. Is there a way to prevent it from going through a div with a chart?
Here is my HTML:
<div ng-repeat="object in objects"> <span>{{ object.title }}</span> <div class="chart"></div> </div>
I have studied using bindonce , but my data is changing, so I cannot (?) Use this.
To be clear, all I change is an attribute of type object.title . I do not expect the chart to stick if the entire array of objects were replaced.
EDIT
Wrote JSBin with the problem here: http://jsbin.com/jijalugu/1/edit?html,js,output
This seems to be the filter that is causing the problem. I use a filter to split objects into sections (from this answer ). Not sure why, it works correctly without a filter.
angularjs
nathancahill
source share