Before Angular 6 I would ng build --env=[ENVIRONMENT FILE] and the environment file would have the firebase configuration to use.
In Angular 7, since libraries don't have the "--env" option, how would let my library know which firebase configuration to use?
Especially in light of the fact that in my library I have to initialize AngularFire with a configuration.
In my library I have . . . but I need the environment to be dynamic. Right now as you can see its static.
import { NgModule } from '@angular/core';
// Angular
import { AngularFireModule } from '@angular/fire';
import { AngularFireDatabaseModule } from '@angular/fire/database';
import { AngularFireAuthModule } from '@angular/fire/auth';
import { environment } from '../environments/environment';
export const firebaseConfig = environment.firebaseConfig;
@NgModule({
declarations: [
],
imports: [
SixteenDataModule,
AngularFireModule.initializeApp(firebaseConfig),
],
exports: [
AngularFireAuthModule,
AngularFireDatabaseModule,
AngularFireModule,
]
})