Hi Guys

I really love to investigate and debug, but I'm sure I'm missing a very 
important concept right now.
Please, take a look at http://jsfiddle.net/TyxH8/68/ where you will find a 
directive I'm working on, which uses transclusion to generate a tree.

I've put a console.log(...) somewhere in the code to show what the problem 
is: when you click on a "leaf" node (w/o children), the "ng-click" event is 
triggered once. Right. But, when clicking on a node which has "childrens", 
the "ng-click" event gets called twice (you'll see in the log 2 different 
timestamp, but same node).

I am hoping someone can take a look at the directive's scope as I'm sure 
there might be something very simple that I'm missing.

I'd love to hear any suggestion.

Thanks!
Nicolas

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to