I am using List Rendering in VueJS to print a list of events from my data. However, for each event there will be a list of sponsors which I would also like to display. I do not see anything in the Vue Documentation which gives an example of this https://v2.vuejs.org/v2/guide/list.html I have tried using the code below but I can't find a solution.
<div id="app">
<ul>
<li v-for="event in events" v-bind:key="events.id">
<p>{{event.eventName}}</p>
<ul>
<li v-repeat="eventSponsors">
{{event.eventSponsors}}
</li>
</ul>
</li>
</ul>
</div>
var app = new Vue({
el: '#app',
data: {
events: [
{
eventName: 'The Open',
eventSponsors: ['Honda' , 'IBM']
},
{
eventName: 'Big Cup',
eventSponsors: ['Nike' , 'Ben & Jerrys']
}
]
}
})