I have a very complex web application and am currently trying to convert it to VueJS … but seem to have hit a problem when I try to create a v-for loop on an indexed array. Have I actually hit a limitation of VueJS?
Here’s the contexts for my HTML loop:
<div v-for="(thisView,vIndex) in viewSettings">
<div v-for="(theTemplate,tIndex) in iTemplates" v-bind:id="'tmpt-vf-tab-'+thisView.incID+'-'+tIndex">
<span class="attribute-controls" v-for="thisAtt in thisView.c.cAtts[tIndex]">
<input type='checkbox' v-model='thisAtt.useAtt'/> {{ thisAtt.attID }}
</span>
VueJS tells me that there is a problem with the render function: “undefined is not an object (evaluating 'thisView.c.cAtts[tIndex]')”
Any thoughts?
thisView.c.cAttsexist for each item? It may be an idea to return this from a method where you can put a check in to see if an object exists.