root
Using the root property allows you to obtain the root node of an element.
On the page, the root node of ordinary elements is always a document instance.
- I am target
Elements within the shadow node
Since elements inside a component are isolated from the external environment, the root property of elements within the shadow node is the shadow root.
- item 1
- item 2
- item 3
logger1:
{{l1}}
logger2:
{{l2}}