News for hackers. Stuff that matters.
Re:Ways to make a web component by ragerino on Friday July 17, 2020 @01:43PM (#23873274)
Problem here is CSS, JavaScript, and HTML. You might use variables, functions or attributes, styles, tags, that would interfere with other components.

That's why you want an additional layer like Angular2+ taking care of that.

Re:Ways to make a web component by clairity on Friday July 17, 2020 @01:57PM (#23873422)
yes, that's the scoping issue i mentioned, which can be solved other ways, like with admittedly-not-ideal randomized classes (or 'for' attributes, perhaps with css-style selectors rather than just for id's).