My data structure looks like this:
city: [
{
foo1: 0,
foo2: "Family",
districts: [
{
bar1: 0,
bar2: "event1",
}
]
},
My v-for looks like this.
<div v-for="district in city.districts" :bar1="district.bar1" :foo="???"></div>
How can I pass the foo1 and foo2 from the parent array as a prop to the div of the v-for?