0👍
You can use a computed method to create a lookup table between both activeStore
and managerNumbers
and loop over that.
get activeStoreAndManagerNumbers () {
return managerNumbers.map((value, index) => {
return {
value,
store: activeStore[index]
}
})
}
Now you can just loop over this array for both of your v-for
:
v-for="(obj, index) in activeStoreAndManagerNumbers"
Now obj.value.qty
and obj.store.qty
are available in the same loop.
Source:stackexchange.com