I have a class called "Case" that contains a list of executable steps. Each executeStep has a boolean property called enabled. I am trying to install on the HTML side, but it never updates on the JS side. HTML side
<td> <input type="checkbox" ng-checked="acase.executionSteps[0].enabled" ng-model="aa" ng-change="updateCaseExecutionStep('{{study.id}}','{{acase.id}}','{{acase.executionSteps[0].id}}','{{acase.executionSteps[0]}}')"/> </td>`
On the controller side, I have an updateCaseExecutionStep function as shown below
$scope.updateCaseExecutionStep = function(studyId,caseId,executionStepId,executionStep){ ... ... }
The problem is that I am updating my checkbox or even manually updating the enable executeStep property
$scope.updateCaseExecutionStep = function(studyId,caseId,executionStepId,executionStep){ executionStep.enabled = true; ... }
I do not see any changes. The included executeStep property passed to JS does not change. Please, help.
Do I need to somehow change the HTML side?
angularjs checkbox
user3799365
source share