|
|
|
|
|
by zkldi
1778 days ago
|
|
> :href="xxx" isn't a string, that is javascript in there. This is the part I don't really follow, though. Technically: <a href="print(1//3)"></a>
href here isn't a string, it's python, but it's stored as a string, representing python. In the :href example for JS, that's not JS - an engine isn't seeing that - that's a string that is evaluated as JS at some point in the vue lifecycle. |
|
I'm like 60% sure that your "string' example is never run in production. So I believe that it gets compiled before vue even sees it (at build time, or dev-server compile time) into the standard method that vue is used to... a vue component:
https://v3.vuejs.org/guide/single-file-component.html