Vuetify data table is not showing data

In my case the problem was that I had put headers array in the props section instead of data. So even when v-datatable had its items property set to an array of objects (which can be confirmed using Vue Dev Tools; a Chrome extension), it would not show any rows.

I spent half an hour banging my head, only to finally realize this problem. As soon as I moved headers from props to data, the table started showing rows. Hope this helps someone down the road.


Since you're using Vuetify 1.x You should add a template with scoped slot :

  <v-data-table
    :headers="headers"
    :items="desserts"
  >
  <template v-slot:items="props">

      <td class="text-xs-right">{{ props.item.name }}</td>
      <td class="text-xs-right">{{ props.item.fat }}</td>

    </template>
</v-data-table>

or you should upgrade to the version 2.0 which does simply :

<template>
  <v-data-table
    :headers="headers"
    :items="desserts"
    :items-per-page="5"
    class="elevation-1"
  ></v-data-table>
</template>

if you want to customize your data cells check this answer