javascript - Does ng-transclude stop event propagation in Angular.js? -
The issue occurs when I try to send an event to nested directive through the $ scope object from my instruction. Like the TL; DR : Why does not it work: when it works: Edit: angular.js version 1.3.0 and now this is not an issue! Your instructions (s) The widget creates a separate scope in a specific setup, but transit is not a child, but is a brother of a separate scope. This looks like your radius hierarchy: You can see that the $ scope.broadcast ('Event') The child does not receive the instruction, but when I use the $ root scope object it works Example:
ng-transclude From the docs:
one
two Elements Live
Two
two
two is not the child of
a .
Comments
Post a Comment