AngularJS ng-click fires twice

后端 未结 18 1808
死守一世寂寞
死守一世寂寞 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:38

    I'm a bit of a dummy and had this:

  • Amethyst
  • The click event was triggering twice. I moved the ng-click to the label element and it's working as expected.

  • Amethyst
提交回复
热议问题