How do you disable the submit button after a single click to prevent multiple submissions in Angularjs?

前端 未结 10 2146
礼貌的吻别
礼貌的吻别 2020-12-23 14:35

I\'ve looked all over the web including several stack overflow examples for a solution to the question. To be specific, I tried this:

10条回答
  •  误落风尘
    2020-12-23 14:54

    Because of historical reasons single (or ) inside submits form if type is not 'submit'.

    According to MDN, button can may have type attribute.

    
    

    makes button have no default behavior.

    Here is more detailed answer.

提交回复
热议问题