I donβt know if this is what you are looking for, but why not try your own model:
<div class="col-md-8 col-md-offset-2"> <label class="checkbox"> <input type="checkbox" ng-model="myModel.prcModel">Upload PRC </label> <label class="checkbox"> <input type="checkbox" ng-model="myModel.prtModel">Upload PRT </label> </div>
therefore, in .js code you can send and receive the "myModel" model as an object, and the values ββwill be true or false.
... var data = $scope.myModel ... $scope.myModel = data;
source share