You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to place a highcharts directive (highcharts-ng) inside of an ng-repeat, and then destroy any of ng-repeat's watchers on the data series of the chart. To do this, I create a highchartConfig object on the scope, which is passed to the highcharts-ng directive (though it doesn't yet have any data in it), and I'm putting a bindonce attribute on that config object that's being given to the highcharts-ng directive. The problem is that bindonce tries to render the highchart at the instant that the highchartConfig object exists (when it's still waiting on data), and then won't update again once I've gotten my data back and added it to the highchartConfig object.
My basic workflow is that I want to:
create the highchartConfig object
pass the config object to the highcharts-ng directive
assign the data array to the highcharts config object
update the dom
destroy all watchers on the highchartsConfig object.
I know that the high level bindonce directive will wait on a given object to become defined before rendering that object's children, but is it possible to also have it wait on a given child object to be defined before rendering the div with a passed parent as an attribute?
Hello,
I'm trying to place a highcharts directive (highcharts-ng) inside of an ng-repeat, and then destroy any of ng-repeat's watchers on the data series of the chart. To do this, I create a highchartConfig object on the scope, which is passed to the highcharts-ng directive (though it doesn't yet have any data in it), and I'm putting a bindonce attribute on that config object that's being given to the highcharts-ng directive. The problem is that bindonce tries to render the highchart at the instant that the highchartConfig object exists (when it's still waiting on data), and then won't update again once I've gotten my data back and added it to the highchartConfig object.
My basic workflow is that I want to:
I know that the high level bindonce directive will wait on a given object to become defined before rendering that object's children, but is it possible to also have it wait on a given child object to be defined before rendering the div with a passed parent as an attribute?
For instance:
Could we wait to render the highchart element until highchartConfig.series.data is defined?
Cheers!
The text was updated successfully, but these errors were encountered: