I have ng-if
conditions in two levels. if the first condition in the first div satisfy the second div should be displayed. Similarly, if the second ng-if
satisfies the third div should be displayed. But I can able to see only the second div.
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
<div><input type="number" ng-model="temp"></div>
<div ng-if="temp>40">
<input type="radio" ng-click="temp2=true">Yes
<input type="radio" ng-click="temp2=false">No
</div>
<div ng-if="temp2">
<p>Some content</p>
</div>
The last div displays if I use ng-show
. But I must not use ng-show
. There are some more divs which work based on these conditions. Please help me in this regard