You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find an explanation of that is the scope inside the JS evaluation for @html.
It looks like evaluateAttribute is where the scope is collected:
// Used for @html and webc:ifasyncevaluateAttribute(name,attrContent,options){letdata=Object.assign({},this.helpers,options.componentProps,this.globalData);letcontent=awaitModuleScript.evaluateScript(name,attrContent,data,{filePath: options.closestParentComponent||this.filePath});returncontent;}
The text was updated successfully, but these errors were encountered:
Any variable declarations or functions declared here will be available in the component (no need for export, just use a normal top-level variable declaration)
Is async-friendly
runs once per component (not once per instance, though the door is open for that later if we want it)
Imagine I have
hello.webc
:I couldn't find an explanation of that is the scope inside the JS evaluation for
@html
.It looks like
evaluateAttribute
is where the scope is collected:The text was updated successfully, but these errors were encountered: