But when showGraph property is changed to true, the div becomes visible but the graph is not rendered. But where as if ng-init="showGraph=true" is set then the chart is rendered properly first and the subsequent toggle work fine. I also checked the same for pie chart and ng-show/hide is working fine.
I have a div which encloses a chart which has ng-show property on it.
But when showGraph property is changed to
true
, the div becomes visible but the graph is not rendered. But where as ifng-init="showGraph=true"
is set then the chart is rendered properly first and the subsequent toggle work fine. I also checked the same for pie chart and ng-show/hide is working fine.