ng-disabled in angularjs is not working for me -
I am trying to enable and disable the button using some condition
I Unable to disable $ scope.isDisabled = true; But the button can not be enabled using
This is my code
HTML file
& lt; Input type = "submit" value = "continue" ng-model = "idle" ng-disabled = "idle" & gt; Administrator JS file
$ scope.isDisabled = true; // here button disabled (for me) if (calculation> = 3) {// it is always true $ scope.isDisabled = false; // Try to enable the button here)
- $ range Do not use. Apply. It is not what it means.
- No need to force button with one model, try removing ng-model from the button.
- In addition to this, if it is an input type of "submit" and you are not inside the NG-form, then there may be a postback and you can lose your state.
There is such a planket that works - I have started following some assumptions, adding an extra button, which increased the calculation increase.
Comments
Post a Comment