-
Is there any way to change tag to other tag like <script type=“text/x-template”/>. My app is currently using template tag for parsing server data, it will replace any template tag without exception. |
Beta Was this translation helpful? Give feedback.
Answered by
SimoTod
Nov 24, 2021
Replies: 1 comment
-
Not possible at the minute because the content of a script tag is considered text and Alpine won't be able to find the root node. But maybe, if your conflict is server side, you can convert them to template tags on the client. Alpine mutation observer will automatically pick them up when you insert the updated node. Useful links:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
phuhien92
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not possible at the minute because the content of a script tag is considered text and Alpine won't be able to find the root node. But maybe, if your conflict is server side, you can convert them to template tags on the client. Alpine mutation observer will automatically pick them up when you insert the updated node.
Useful links: