0👍
Polygons is an array, so to get the 1st item:
<span v-if="event.polygons.length !== 0"><i class="ti-location-pin"></i> {{event.polygons[0].name}}</span>
Or iterate over it:
<span v-if="event.polygons.length !== 0" v-for="polygon in event.polygons"><i class="ti-location-pin"></i> {{polygon.name}}</span>
- [Vuejs]-Change webpack generated external IP
- [Vuejs]-Interpolation doesn't rerender in parent component after custom event from child
Source:stackexchange.com