-
Notifications
You must be signed in to change notification settings - Fork 4
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
Creating template #9
Comments
Or if I do |
Thanks, you found a typo in my docs (it should have been Your new issue is that your component only accepts a prop called Now, apparently my docs also lie because fixing that will result in the following error:
It seems local component templates have to be removed from the app template before Vue gets to it by wrapping them in Here's a working example:
|
This would be a simple fix if I added support for Then the following:
would render as: |
Aah, thanks. Perhaps more about my usecase;
I'd like to turn this li list into card components + programatically add some extra control to this
|
So you have raw pre-rendered html? Can you transform this html? What do you want to do it with it exactly? |
So running legacy backend that does raw prerendered html (has some limited templating possibilities). I guess I could even do
type of output. I'd like to hydrate(I believe is the term) this into dynamic vue component. |
Interesting project but I seem to have difficulties to understand how to work with templates.
I have a simple html;
And js/card.js says
But this won't work its giving
Uncaught TypeError: Cannot read property 'querySelector' of undefined
error. So obviously I'm doing something wrong.The text was updated successfully, but these errors were encountered: