AngularJS ng-click fires twice

后端 未结 18 1815
死守一世寂寞
死守一世寂寞 2020-12-03 07:10

I am using ng-click and it fires twice when I apply it to SPAN tag.

HTML

18条回答
  •  孤街浪徒
    2020-12-03 07:37

    You might have a ng-click inside a form container using a ng-submit. In that case, add type="button" to all your using ng-click.

提交回复
热议问题