3 ms·
Sure you can access this.$parent, and use a v-if on an element with a v-for, but if you read the docs, they tell you that you probably shouldn't be doing either
by altec3 7y ago
Sure you can access this.$parent, and use a v-if on an element with a v-for, but if you read the docs, they tell you that you probably shouldn't be doing either of these things [1][2].
[1] - https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-the-Parent-Component-Instance https://vuejs.org/v2/guide/components-edge-cases.html#Access...
[2] - https://vuejs.org/v2/guide/list.html#v-for-with-v-if https://vuejs.org/v2/guide/list.html#v-for-with-v-if