Preventing / dealing with double button clicks in angular

前端 未结 13 1229
我寻月下人不归
我寻月下人不归 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条回答
  •  孤街浪徒
    2020-11-27 20:44

    As suggested in one of the answers, I tried using ng-dbliclick="return false;" which gives JS warning.


    Insted I used ng-dblclick="return" which is working smooth. Though this only works inside the

    tag.

提交回复
热议问题