How to disable a button in ANGULARJS

后端 未结 4 1476
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 19:56

i have angularJS 1.5.0-rc.2

I found on the internet that i can use the directive

data-ng-disabled=\"Expression\"

But it won\'t dis

4条回答
  •  天命终不由人
    2020-12-17 20:21

    Try this 
    1 This is direct method of implementation
    
    
    2 another way you can change the value for
    in controller inside init function $scope.dsblBtn = true;

提交回复
热议问题