I need assistance with implementing a specific functionality. If the option value is equal to 1, I want to 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>
Below is a snippet of the controller code.
$scope.isHidden = true;
if($scope.selection == '1'){
$scope.isHidden = false;
}
The current code is not functioning as expected. I would appreciate any help in solving this issue. Thank you.