Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a class which implements the function of the element.
- // An instance of this class will serve as the backing
- // instance for the HTML tag for the element
- class NameTag extends HTMLElement { }
- // Register the class with the `name` of the HTML tag for the element
- window.customElements.define('name-tag', NameTag);
Add Comment
Please, Sign In to add comment