I am using ng-bind to call a function written in Controller to create
HighCharts in my page. It works fine on first time page load. After page
gets loaded, whenever I click on a Link/button on page which calls any
function from Controller, ng-bind again calls the function to hichcharts.
Please look at the following snippet of my code
<div class="col-md-6 text-center">
<div ng-repeat="chart in question.charts" id =
"{{chart.renderTo}}" ng-bind ="createChart(chart)" >
</div>
'createChart' get called every time I click on any button or link.
Is there any solution so that the function does not get called every time?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.