I have a scenario that I have an event called AdviceEvent
registered by two different components ParentCmp
and FriendCmp
. And Third component called PersonCmp
is handling both event.
The Question is if both ParentCmp
and FriendCmp
fire the same event at same time. at that situation PersonCmp
should only listen to ParentCmp
's event.
And how can we identify from which component that event has been fired?
Thanks in advance :)