Here is my angularjs code
<label class="switch">
<input
type="checkbox"
ng-model="question.questionId"
ng-change="questionStatusChange(question.questionId,!question.active)"
ng-checked="question.active" >
<span class="slider round"></span>
</label>
ng-change
is triggering fine from unchecked to checked state
But
ng-change="questionStatusChange(question.questionId,!question.active)"
is not working from checked to unchecked state.
I am trying to enable or disable a table record.
$scope.questionStatusChange = function(questionId,status) {
console.log(status);
}
I am using this toggle: https://www.w3schools.com/howto/howto_css_switch.asp