We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3852 #875
HTML:
<my-component header-text="hello"></my-component>
Svelte file:
<svelte:options tag="my-component" /> <script> export let headerText; </script> <div> {headerText} </div> <style lang="scss"> </style>
headerText is undefined.
headerText
You can use {$$props["header-text"]} but if user change the html attribute, svelte, don't re-render html and webcomponent show always "hello".
{$$props["header-text"]}
The text was updated successfully, but these errors were encountered:
Why my result still undefined by $$props ?
Sorry, something went wrong.
I have the same problem, please fix this as soon as possible
@veeking @abdolian This is svelte issue sveltejs/svelte#3852
ptkdev
No branches or pull requests
Svelte refs:
#3852 #875
Example
HTML:
Svelte file:
headerText
is undefined.Workaround:
You can use
{$$props["header-text"]}
but if user change the html attribute, svelte, don't re-render html and webcomponent show always "hello".The text was updated successfully, but these errors were encountered: