Skip to content
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

tags being stripped out of strings in the <view-model> #72

Open
nlundquist opened this issue Dec 18, 2017 · 1 comment
Open

tags being stripped out of strings in the <view-model> #72

nlundquist opened this issue Dec 18, 2017 · 1 comment
Labels

Comments

@nlundquist
Copy link

nlundquist commented Dec 18, 2017

When using a .component based file, tag strings are being stripped out of the JavaScript within the <view-model> section.

For example a component that appends an h1 tag to an element will end up only appending the contents of the h1, since the tag itself has been removed from the loaded JS. Looking at the loaded JS (/test-parent.component.view-model!eval in the example) you can see the tag is missing.

see the code at: https://glitch.com/edit/#!/tender-alligator
& the running example at: https://tender-alligator.glitch.me/

@nlundquist
Copy link
Author

nlundquist commented Dec 20, 2017

stache tags are also being stripped out of the rendered content :(

a function in a view model like:
buttonHandler() { renderSidePanel('{{close-button}} <my-component>'); }
would render as:
buttonHandler() { renderSidePanel(' <my-component>'); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants