I have html structure like this
<div ng-controller="parentCtrl">
    <div ng-controller="childCtrl">
        <input ng-model="selectAll" id="selectAll" type="checkbox" ng-click="selectAllChange()"></div>
    </div>
</div>
here is the js code
function parentCtrl($scope) {
    $scope.selectAll = false;
    $scope.selectAllChange = function() {       
        if($scope.selectAll){
            console.log('ttt');
        }
        else
            console.log('fff');       
    }   
}
on click of checkbox whether its checked or not, in console I am always getting fff
How to know that checkbox was checked or not in this situation?
 
    