I have a checkbox which shows/hides a graph when clicked. When I change its clicked attribute in controller, button gets clicked but the graph does not become visible.
The html part I use is below;
<div class="panel panel-default">
<div class="col-xs-6 col-md-4">
Graph
<input type="checkbox" ng-model="visibleGraph" id="graph_check">
</div>
</div>
<div class="panel panel-default" ng-show="visibleGraph">
<div class="panel-heading">Graph</div>
<div class="panel-body">
<canvas id="line" class="chart chart-line" chart-data="graph_data"
chart-labels="graph_labels" chart-series="series" chart-options="options"
chart-dataset-override="datasetOverride" chart-click="chartClicked">
</canvas>
</div>
</div>
and here how I set its value in controller;
document.getElementById("graph_check").checked=true;
Is there something I am missing?