I am using Vue 2 with firebase. In my src/boot/firebase.js I have the following:
import App from "../App.vue";
export const app = createApp(App);
export default async ({ Vue, store }) => {
app.config.globalProperties.$fb = firebase;
return initializeApp(firebaseConfig);
};
I need to access app.config.globalProperties.$fb in other .js files, especially src/router/index.js
Any advice and insight is appreciated.