Open DrSensor opened 1 year ago
<body>
<head> <script src=//esm.run/nusa/link/root></script> </head> <link let=root href=module.js> <link target="input[type=button]" href=counter.js> <body> <input :=root.Log type=text :: value:=root.msg placeholder:=root.default> <input :=root.Log type=button :: value:=count on:click=increment> </body>
<script src=//esm.run/nusa/link/element></script> <input :=io.Log type=text ::="<link scope=self let=io href=module.js>" value:=io.msg placeholder:=io.default >
🤔 Question: should the default (when no scope attribute) binding pass to children too like in render-scope > template[shadowrootmode] *
scope
render-scope > template[shadowrootmode] *
Possible value for scope attribute:
self
:scope
this
child
:scope > *
inside
:scope *
all
:scope, :scope *
link module to
<body>
link module to specific element
Possible value for
scope
attribute:self
- querySelector(:scope
) or same asthis
Elementchild
- querySelectorAll(:scope > *
)inside
- querySelectorAll(:scope *
)all
- querySelectorAll(:scope, :scope *
)