Open samuelgoldenbaum opened 9 years ago
How do I bind ng-click events to the newly inserted dividers?
I add: ng-click='clicked()' to:
var contentTr = angular.element("<div ng-click='clicked()' class='item item-divider'>"+divideKey+"</div>");
yet it doesn't fire in the directives scope:
scope.clicked = function() { alert('clicked'); }
http://codepen.io/samuelgoldenbaum/pen/mJJvqw
How do I bind ng-click events to the newly inserted dividers?
I add: ng-click='clicked()' to:
yet it doesn't fire in the directives scope:
http://codepen.io/samuelgoldenbaum/pen/mJJvqw