-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
Allow anchor
to be passed in initial component instantiation
#784
Comments
Yeah, I don't see any good reason not to do this. Would you be up for making a PR (ideally with a test)? |
will do! thanks for the quick response. I'll get the PR ready 👍 |
PR in the hole! I couldn't think of a better way to unit test this with the existing test framework because it's code that runs at instantiation time (not build time). I updated the expectations, but let me know if I'm missing something else. |
Thank you! Released as 1.32 |
Sorry if I am being a bit thick, but, what's the difference between The docs are a bit lacking and I can't figure out what |
when you specify I hope that was clear 😄 |
Thanks for the clarification 😄 I was under the impression it Even then, can't we just have a more specific selector in |
do that would make your svelte component markup a child of |
Ah, I see. |
Hi, just started using svelte and I'm really liking it so far!
What do you think about allowing the initial config object to contain an
anchor
attribute so the component could be bootstrapped at a particular place in the dom?In practice it would look something like this:
I have this working in my fork, the change is incredibly small.
Thanks!
The text was updated successfully, but these errors were encountered: