I am looking for a way to transmit data to another component from a Component that is neither a direct child nor parent.
To better explain my question, I have put together a Plunker example.
When the code snippet below is triggered, I need some mechanism in place to capture it.
fillSelectT(item){
//populate Select to
}
The following piece of code should be able to receive and process the transmitted data.
listener(item){
selectedItems.push(item);
}
It's akin to an EventAggregator
concept found in C#, which I am attempting to emulate here.