Web Components ⟩ Custom Elements ⟩
To get the information about custom elements, there are methods:
method
notes
customElements.get(name)arrow-up-right
returns the class for a custom element with the given name
customElements.whenDefined(name)
returns a promise that resolves (without value) when a custom element with the given name becomes defined.
Last updated 4 years ago