Closed henrylow97 closed 3 years ago
From Firebase Admin Console, when creating web app, there's 2 options:
If we choose to go with Config, lets say we want to store "firebaseConfig" in environment.ts file, can we do something like below?
constructor(private firebaseAnalytics: FirebaseAnalytics) { this.firebaseAnalytics.initializeApp(environment.firebaseConfig); this.firebaseAnalytics.analytics(); }
If not, I don't see how "firebaseAnalytics" will "know" about the "firebaseConfig".
From Firebase Admin Console, when creating web app, there's 2 options:
If we choose to go with Config, lets say we want to store "firebaseConfig" in environment.ts file, can we do something like below?
If not, I don't see how "firebaseAnalytics" will "know" about the "firebaseConfig".