Answer the question
In order to leave comments, you need to log in
How to uncheck CheckBox when using ng-show?
<input type="checkbox" data-ng-model='one' data-ng-true-value='one' data-ng-false-value='' /> Первый<br>
<input type="checkbox" data-ng-model='two' data-ng-true-value='two' data-ng-false-value='' data-ng-show="!one"/> Второй<br>
Answer the question
In order to leave comments, you need to log in
you can create a status variable in the scope, for example ... and change it at the right time. Along with it, the checkbox attribute ng-disabled="status === 'disabled''" // true | false
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question