Tuesday, October 18, 2016

AngularJS stopPropagation() in ng-click

To stop event propagation / bubbling in angular's ng-click directive, just add $event.stopPropagation(); to the existing ng-click handler.

Like this:



..  ng-click='kd_dd_toggle_group(kd_gui_offers_by_cta_group[group]);$event.stopPropagation();' ...

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...