There is a vuejs component called my-comp with a given data that I want to iterate on its elements and print them:
<my-comp json-data='[{"id":1,"text":"Hello"},{"id":2,"text":"World"}]' inline-template>
<div v-repeat="d: data">
<div>
{{ d.id }}
</div>
<div>
{{ d.text }}
</div>
</div>
</my-comp>
And it works fine if there is no curly braces within text property of my d object but if there is, a TypeError exception will be thrown: TypeError: res is undefined and the only way I know to fix it, is to escape curly braces with back slash: change {{ token }} to {\{ token }\}.
Is there any more convenient way to ignore curly braces within vuejs or Am I doing something wrong? Here is a working code with no {{}}, and here is how {{}} breaks it & I'm using version 0.12.16.
json-data.literal='...'in the latest beta I believe. I'm not sure how to approach it in this version. I imagine just trying to read the attribute off the element itself could work but Vue is telling me that component is a text node (I'm guessing something related toinline-template.v-pre