Too bad, because I need this all the time and writing
$event.stopPropagation() feels cumbersome.
(I think I understand why you changed that though: It is easier to
disable bubbling - as you showed - than to enable it manually)
If someone doesn't like bubbling too (well actually I like it, but not
always):
http://jsfiddle.net/FZvSY/1/
I'm not too happy with that solution, any suggestions?
Cheers,
Max
On 15 Mrz., 18:22, Misko Hevery <
mi...@hevery.com> wrote:
> documentation bug. It used to not bubble, but now it does. If you want to
> prevent then do do something like this.
>
> <span ng-click="myBehavior(); $event.stopPropagation()">
>
> -- Misko
>
> On Thu, Mar 15, 2012 at 3:19 AM,
maxm...@googlemail.com <
>
>
>
>
>
>
>
>
maxm...@googlemail.com> wrote:
> > I follow yor great work for a while now and I am really happy to say:
> > Congrats for 1.0.
>
> > I have a question about ng-click:
> > The click-event does seem to bubble the DOM upwards but thats not what
> > I expect after reading
>
> > "Events that are handled via these handler are always configured not
> > to propagate further."
>
> > in line 12889 ofhttp://
code.angularjs.org/1.0.0rc1/angular-1.0.0rc1.js.