Could someone tell me how to show and hide div loggically
$scope.showChildDiv = false;
var resp = {
prop1: {
'data1':'asd'
}
}
$scope.showDiv = function(){
!$scope.showChildDiv = $scope.showChildDiv;
if(resp.prop1) {
}
}
<input type='checkbox' ng-click='showDiv()' ng-model='clickMe'/>
<div class='showThisDiv' ng-If='showChildDiv'></div>
How to achieve below scenarios,
need to show div, if showChildDiv
is false
and resp
has prop1
need to show div, if checkbox is checked and showChildDiv
is false