Vue.js nested v-repeat: how to access parent index $ index inside child element?
1 answer
UPDATE 2: v-forNow supports specifying an alias for $index: http://vuejs.org/api/#v-for This should allow you to avoid naming collisions on $index.
UPDATE: VueJS 1.0 is deprecated v-repeatin favor v-for. However, this is the same solution.
Try to use $parent.$indexto access $indexin the parent area.
+13