I have a checkbox inside a label, and for design purposes, I added a div there. My requirement is to get the checkbox value on the click event of the label. However, I am always getting false whenever the checkbox is clicked.
<label class="text-xs col-xs-4 switch">
<input type="checkbox" ng-model="inAtlas">
<div class="slider round"></div>
</label>
I would like to retrieve the value of $scope.inAtlas
when the label
is clicked. Currently, I am always getting false for every click event.