Preventing / dealing with double button clicks in angular

前端 未结 13 1173
我寻月下人不归
我寻月下人不归 2020-11-27 19:53

In angular we can set up a button to send ajax requests like this in view:

... ng-click=\"button-click\"

and in controller:



        
13条回答
  •  -上瘾入骨i
    2020-11-27 20:40

    As suggested, using ng-disabled will solve your problem. I made a plunker to illustrate it here.

提交回复
热议问题