[Vuejs]-Vue Material – MdTable initialization error in data fetching

0πŸ‘

βœ…

As I stated here, Due to a syntax error on my implementation:

[...]
<md-table-cell v-for="(val, i) in item" :key="val.id" v-if="(i !== 'id') && (i !== 
'estensione_garanzia') && (i !== 'note')"
[...]

The attribute :key="val.id" is misconfigured. In this case I’m iterating an array of objects – without nested of them – so there’s no sub-property id on selected element. For more information the official doc shows a complete example

By changing the attribute like this:

:key="val.id"

Everything works fine.

πŸ‘€user7554217

Leave a comment