I am new to angular.js and I was trying to create an html list with checkboxes, so what I was trying to achieve was to call a javascript function, when a user checks a checkbox.
<input id='box' ng-model='" + key + "' ng-change='graphquery(\"" + key + "\")' class = 'queryNameList css-checkbox' type = 'checkbox' />
So here, I have used ng-change which basically captures all changes, it calls function graphquery on both cases ( checking and unchecking)
Is it possible to specify, condition, like it should only call this function if the checkbox is checked.