Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Passing Objects in Native Web Components - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
3y ago
•
28 replies
Benji598
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
!
index.html
2.25KB
dispatch.js
752B
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
formData in web-components
KP-C
Kevin Powell - Community / front-end
3y ago
React: passing in arrays as arguments to components
KP-C
Kevin Powell - Community / front-end
3y ago
Question about web components
KP-C
Kevin Powell - Community / front-end
2y ago
Passing props in parent component
KP-C
Kevin Powell - Community / front-end
3y ago