angularjs - Set the ngClick event handler for the capturing phase -


is possible set ngclick event handler capturing phase described in this article. want prevent events trickling down children , bubbling again when condition met parent during capturing phase.

in angular event directives can use $event object (it jquery/jquery-lite event object). so, can this:

ng-click="someaction(); $event.stoppropagation()" 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -