3 ms·
Interested to hear more. There's lots of stuff out there on the mechanics of web components and less about how to actually use them. What I can't wrap my head a
by LAC-Tech 4y ago
Interested to hear more. There's lots of stuff out there on the mechanics of web components and less about how to actually use them. What I can't wrap my head around is how to use them to render complex data when you can only pass strings into attributes.
- dtagames 4y agoNot true! You can pass any object. In Lit, just put a dot before the attribute name: <my-component .array=${[1,2,3]} .object=${{this: that, another}} .var=${mySomething}></my-component> I did a series on Medium. Maybe one of these would be of help to you: https://link.medium.com/HNhigMgvAxb https://link.medium.com/HNhigMgvAxb https://link.medium.com/TNiNHDkvAxb https://link.medium.com/TNiNHDkvAxb