How to get checkbox value in angularjs?

后端 未结 4 506
故里飘歌
故里飘歌 2021-01-04 09:00

I have a 10(or n)checkbox in my ng-view. Now I would like to ask here that What is the most efficient or simple way to check if checkbox is checked and if checked get the v

4条回答
  •  一生所求
    2021-01-04 09:53

    If you want to get the value printed.
    You can use like :

    input type="checkbox" ng-model="checkboxModel.value2" ng-true-value="'YES'" ng-false-value="'NO'" 
    

提交回复
热议问题