Have below code with flights info. Table shows price and flightDuration, but I fail to get airline name from flights array. I am new to Vue js, so would appreciate any help.
UPDATED (still not working):
<tr v-for="flight in tickets.flights">
<td>{{ flight.airline.name }}</td>
</tr>
JSON Data structure:
data: {
tickets: [{
"price": 100,
"flightDuration": "75",
"flights": [
{
"departureTime": "12:00",
"departureDate": "21 november",
"arrivalTime": "13:15",
"arrivalDate": "21 november",
"airline": {
"code": "DV",
"name": "Scat"
}
}
]
sortKey : 'flights.departureDate',
reverse : false,
columns : [
'flights.departureDate',
'flightDuration'
]