Answer the question
In order to leave comments, you need to log in
Tell us about the best practices for using Firebase.database?
Hello everyone,
recently I asked a question about changing the framework and the guys advised me vue - taking the opportunity to thank you again, it's just a miracle!
After a while, when I more or less got used to it, I became interested in whether I was using firebase correctly. The question is, from each component that needs to get data from the database, I will import db.js:
//db.js
import Vue from 'vue'
import VueFire from 'vuefire'
import Firebase from 'firebase'
Vue.use(VueFire)
export default Firebase.initializeApp({
apiKey: '...',
authDomain: '....',
databaseURL: '...',
projectId: '...',
storageBucket: '....',
messagingSenderId: '...'
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question