Page Title
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Amet distinctio nam, possimus officia error delectus impedit libero corrupti, sunt, sapiente suscipit. Esse, quisquam tempore similique eveniet veritatis pariatur adipisci sit.
Set the type attribute to js, jsx or javascript when using tagged template literals.
Hello world!
`; } }The render function is what you'd expect for LitElement to render HTML on update of ANYTHING that it knows about.
Notice that we render the styles inside the HTML. This is NOT standard but makes it easier to read.
Classes will always be used in OOP JavaScript.
The next thing!
:host is a VERY special selector that ONLY works in shadowRoots! This is like saying "do this stuff to ME" which is NO WHERE ELSE POSSIBLE! At the document level though, there's :root which IS THE MOST GENERIC SELECTOR which is soooooorta like the defaults for the very very top of the document cascade.
:host is a VERY special selector that ONLY works in shadowRoots! This is like saying "do this stuff to ME" which is NO WHERE ELSE POSSIBLE! At the document level though, there's :root which IS THE MOST GENERIC SELECTOR which is soooooorta like the defaults for the very very top of the document cascade.
Use the boolean attribute render to render the code inside the <template> tag.
Use the boolean attribute copy-clipboard-button to display a "copy" button on the top right corner.
Lorem ipsum dolor…
Initial content.