The <template> element is the base from which everything else is built. The <slot> element customizes what the < template> renders on the page. The name attribute tells the web component which content goes where in the template. The spec prescribes that to prevent conflicts with the event that HTML releases when a new element is created.
Table of contents
Let’s start with theThen there’s theUsing the componentRegistering the componentStyling the component1 Comment
Sort: