Closed unlocomqx closed 5 years ago
I couldn't do the same for attribute names
You mean shorthand props like <Foo {name}>
?
Yeah <Foo {name}
> and also use:function
transition:fade
etc
I checked other similar plugins, no one seems to do it, not even angular directives
Attribute name is not a valid injection host as far as I understood
Okay I finally figured out #50 which gives me better outlook on the next steps. I think that this PR needs to be closed (but let's leave it open for now).
Inside that PR there's a comment with a roadmap and since you put significant amount of work into this plugin I thought this might interest you.
Brilliant! I'd be glad if I contributed even with a good idea :smile:
I'll close this PR because the multi injector was removed. A simpler way to do this could be by using <languageInjector
I think it's better to lazily parse attribute value
Yes, I just saw the comment in #50 Cheers!
I moved the injection from LanguageInjection to the MultiHostInjector I also used only
SvelteLanguage
for the injection to letSvelteCodeInjectionVisitor
do the rest I couldn't do the same for attribute names, it seems unsupported as far as I tested