Junaid Syed

Junaid Syed

  • NA
  • 485
  • 130.5k

How can i append checkbox value to checkbox in angularJS

Nov 17 2017 5:16 AM
Hi below code is use for checkbox
 
  1. <div class="col-md-6 col-sm-6 col-xs-12">  
  2.  <input type="checkbox" ng-model="VendorsObject.MISC" />  
  3. </div> 
 when i click on vendorName my check box vlaue should append to checkbox field as how below:

 Here is the code which i use in my controller :
  1. var data = RMSService.getvendorsById($stateParams.id, globalValues.token).then(function (response) {  
  2.         $scope.VendorsObject = response.data;  
  3.  }, function (error) {  
  4.         console.log(error);  
  5.     }) 
 Iam getting the whole form data into respose.data in the above code.I just need to append the checkbox value into my form as shown above in vendor Insured?.How can i do this.how can i solve this.Thank you.

Answers (1)