|
|
|
|
|
by mapreduce
878 days ago
|
|
> We live in a world where custom elements (aka <whatever-you-can-dream-of>) are fully supported and enabled by modern browsers. Don't we need to define the custom element <whatever-you-can-dream-of> using javascript first? All my knowledge about custom elements comes from this Mozilla doc: https://developer.mozilla.org/en-US/docs/Web/API/Web_compone... If custom elements is the way to go, it sounds like a lot of javascript and coding overhead that I have to take. Doesn't it? |
|
If all you want to do is prevent the "div/span-tag soup" as he calls it, you don't have to register anything, though. You can just write <ui-card><ui-card-header>My header</ui-card-header></ui-card> and style that using regular CSS à la ui-card { background-color: red; }.