mardi 21 avril 2015

Angular How to check checkbox with click on div

I need to check/unchec checkbox with click on div "user check" and call doIfChecked(user).

.user_check {
width: 600px;
  border: 1px solid red;
}
<script src="http://ift.tt/1mQ03rn"></script>


        <div class="user_check" ng-app="app">
          
          <input type="checkbox" checklist-value="contact" checklist-model="user.co" ng-click="doIfChecked(user)"/>
        </div>

Aucun commentaire:

Enregistrer un commentaire