I am looking to establish a way to broadcast an event from a parent directive to a specific child, without all children in every instance of the "parent" directive receiving it when using scope.broadcast in the parent directive link function.
Current Behavior: Currently, when the parent (1) broadcasts an event, both child (1.1) and child (2.1) receive the event.
Desired Behavior: I want to modify the functionality so that the event broadcasted from parent (1) is only received by child (1.1), excluding child (2.1).
In my directive, I have implemented code to check if an element is on the screen. I intend for only one directive to perform this function and be responsible for sending events to others.
<div>
<div parent> <!-- 1 -->
<div child></div> <!-- 1.1 -->
</div>
<div parent> <!-- 2-->
<div child></div> <!-- 2.1 -->
</div>
</div>