I have a problem on my code. I can't display my data to Vuetify Datatable, Although it is enable Read and write on my Firebase Database: Anyway here is my code for that, any wrong with my code? Comments were greatly appreciated:
<template v-for="user in users">
<v-data-table
v-bind:headers="headers"
:items="user"
hide-actions
class="elevation-1"
>
<template slot="items" scope="props">
<td>{{ users.title }}</td>
<td class="text-xs-right">{{users.description }}</td>
</template>
</v-data-table>
</template>
import * as firebase from 'firebase'
let config = {
//config here.....
}
let app = firebase.initializeApp(config);
let db = app.database();
let userRef = db.ref('users');
export default{
firebase:{
users:userRef
}
}
headers&items. Also, I don't know what thescope="props"bit is doing. That doesn't mean it's wrong, I just don't know what it's doing.