dimanche 4 décembre 2016

access checkbox value in controller

I'm trying to access the checkbox value from my angularjs controller.

My checkbox is as follows.

  <div class="checkbox"><label for="id_tokenization">
   <input ng-click="addProperties()" name="tokenization" type="checkbox" ng-model="vault.tokenization" value="store.preauth.approved_responses">
   Enable Tokenization</label></div>
  </div>

For my checkbox value i have given a string. I want to get that value to my controller. How can i do this?




Aucun commentaire:

Enregistrer un commentaire