Passing Objects in Native Web Components

I'm trying to learn Native Web Components and would love some help with this problem I'm facing.

I'm trying to pass a simple object literal from the dispatch-data to the recieve-data component by listening to the event.

However so some reason I can't get the recieve data to listen to the event using the this.addEventListener, but I can using the window object.

so my question is... is there a way to pass an object from the parent to the child without using the window object?

look forward to hearing solutions so I can get a good nights sleep! 🤣
Was this page helpful?