How to disable an input box using angular.js

后端 未结 6 558
名媛妹妹
名媛妹妹 2020-12-14 06:00

I am using this field for an edit view and a create view



        
6条回答
  •  时光说笑
    2020-12-14 06:47

    Your markup should contain an additional attribute called ng-disabled whose value should be a condition or expression that would evaluate to be either true or false.

        
    

    And in the controller you may have some code that would affect the value of ng-disabled directive.

提交回复
热议问题