How to get the user info to the “data” part of the app in vue.js?
Would you happen to know how to set the user to the currentUser? I am using vuefire and firebase. The user.uid is returning undefined. <td v-if="(building['key'] && building['key'].child('ownerId')) == user.uid"> <p >{{building['.key']}} + {{user.uid}}</p> </td> this is the rest of my code: import firebase,{ db, usersRef, buildingsRef } from '../firebase-config'; import { store } from '../store/store'; export default { firebase() { // from my understanding this just gives me a quick access to the Refs and a short nomenclature return { users: usersRef, buildings: buildingsRef, } }, name: