lundi 7 novembre 2016

onclick of lable get checkbox value inside

I have checkbox insde lable and for design purpose i add div there. My requirment is to get checkbox value onclick event of lable, now I am getting false for all time checkbox clicked event

<label class="text-xs col-xs-4 switch">
                                    <input type="checkbox" ng-model="inAtlas"> 
                                    <div class="slider round"></div>                                  
                                </label>

I want toget $scope.inAtlas value onclick of label. Currently getting false for all click event.




Aucun commentaire:

Enregistrer un commentaire