Skip to content

Can Custom Elements use other custom elements

Gabriel Forti edited this page Jul 30, 2018 · 3 revisions

Custom elements can use other custom elements.

Item 1 Item 2 Item 3 Item 4

Since the element in a child, you can access the element from the query selector

this.shadowRoot.querySelectorAll('todo-item');

Clone this wiki locally