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)    

  1. $ range Do not use. Apply. It is not what it means.
  2. No need to force button with one model, try removing ng-model from the button.
  3. 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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -