root
Use the root property to get the root node of the element.
On a page, the root node of ordinary elements is the document instance.
- I am target
Elements Inside Shadow Nodes
Because the elements inside the component are isolated from the external environment, the root attribute of elements within the shadow root is the shadow root node.
- item 1
- item 2
- item 3
logger1:
{{l1}}
logger2:
{{l2}}