MCPcopy
hub / github.com/angular/angularfire / initializeApp

Method initializeApp

src/compat/firebase.app.module.ts:52–60  ·  view source on GitHub ↗
(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppSettings)

Source from the content-addressed store, hash-verified

50})
51export class AngularFireModule {
52 static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppSettings): ModuleWithProviders<AngularFireModule> {
53 return {
54 ngModule: AngularFireModule,
55 providers: [
56 {provide: FIREBASE_OPTIONS, useValue: options},
57 {provide: FIREBASE_APP_NAME, useValue: nameOrConfig}
58 ]
59 };
60 }
61
62 // eslint-disable-next-line @typescript-eslint/ban-types
63 constructor(@Inject(PLATFORM_ID) platformId: Object) {

Callers 15

ɵfirebaseAppFactoryFunction · 0.80
messaging.spec.tsFile · 0.80
database.spec.tsFile · 0.80
changes.spec.tsFile · 0.80
fromRef.spec.tsFile · 0.80
auth.spec.tsFile · 0.80
storage.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected