0👍
✅
The first problem was like @ashwin said with the brackets, the other one was that the Vue app closing brackets were missing, also onclick
doesn’t work, I replaced it with @click
, then everything was okay
1👍
Change
<a href="#" onclick="change_selected('customers')"> <!-- removed type= -->
customers
</a>
this should work with verbatim
but you can also change delimiters in vue.js like following
delimiters: ["{(", ")}"],
which you did but didn’t change {{
to {(
so please change like this:
<div>
{( selected )} // <= change here
</div>
Source:stackexchange.com