Please help implement such functionality. If option value == 1, hide the form below.
<select ng-model="selection">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<select>
<form ng-hide="isHidden"> <!-- Form to be hidden when option value == 1 -->
<!-- Some html code here... -->
</form>
Here's a part of the controller.
$scope.isHidden = true;
if($scope.selection == '1'){
$scope.isHidden = false;
}
The current code is not working. Please help me to implement this. Thanks.