-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
v-pre do not work in template tags #8041
Comments
It works fine on the fiddle you posted. I'll revisit if you add correct steps to reproduce and fix the repro. Thanks |
Ah, didn't get what you said in the first place. Not sure if this a good idea because template has a special meaning in html. For the moment you can use |
Hi, the use that I am giving to the template tag is the one that should be, but outside of vuejs, and that is exactly the problem. Using the v-html works. Is too complicate, but works. It would by nice and easier if v-pre works in the template tag. Thanks |
I'm not familiar with laravel-admin. Does https://vuejs.org/v2/guide/components-edge-cases.html#X-Templates |
Maybe should work. But the template tag, is inside a blade file, and if a put a script inside the root vue element, I get another warning. So, I think for the moment v-html is the best way. Thanks ! |
Version
2.5.7
Reproduction link
https://jsfiddle.net/3s9sem0m/
Steps to reproduce
I am using laravel-admin.org and I have incorporated vuejs into that system. The problem is that there are some functionalities that use the tag template, to then duplicate it using jquery, and vuejs are rendering those tags (even if you add the v-pre directive) and breaking all that functionality.
What is expected?
The directive v-pre should prevent render the tag template
What is actually happening?
The tag template is rendered and disappears, preventing the later use of the js script and breaking all the functionality
The text was updated successfully, but these errors were encountered: