<button type="button" ng-click="doSomeSth();$event.stopPropagation();">button</button>
该方式适应于click事件,若想要在自定义指令中阻止事件冒泡,可采用标志位的方法:
AngularJS阻止事件冒泡$event.stopPropagation()
原文:https://www.cnblogs.com/linm/p/12513658.html