javascript - How to prevent particular <div> action on clicking button in angularjs? -


how prevent particular <div> action on clicking button in angularjs?

i have tried event.preventpropagation on on-click.

this should work preventdefault

<div ng-click="prevention($event)">div</div>   $scope.prevention = function($event) {   // our function body   $event.preventdefault();   $event.stoppropagation(); } 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -