javascript - What is the difference between "selectRootElement" and "createViewRoot" -
in "renderer" section, official documentation not specify... "not yet documented" url
selectrootelement
selects root element dom:
selectrootelement(selector: string): element {...}
while createviewroot
creates shadowdom root @ hostelement
:
createviewroot(hostelement: any): {...}
you can see difference in source code.
Comments
Post a Comment