0π
Scope of variable:
result
is limited to the loop,result
wonβt be accessible outside the loop, instead will throwreference error
, so, movednew-modal
inside the loop, also this will enable the component to be rendered for each iteration
<div
v-for="result in users"
:key="result.id"
>
<div>
{{ `${result.user.first_name} ${result.user.last_name}` }}
</div>
<!-- Here -->
<new-modal v-bind:result="result"/>
</div>
- [Vuejs]-How to collect array of checkboxes in a dynamic array of items vueJs Vuetify
- [Vuejs]-Vuetify: Align Odd elements to left even elements to right in grid
Source:stackexchange.com