Skip to content

Commit

Permalink
Update app.config.ts
Browse files Browse the repository at this point in the history
Fixed the bug that the argument of type 'EnvironmentProviders' is not assignable to parameter of type 'ImportProvidersSource'.
  • Loading branch information
hjklasdfg authored Jan 14, 2025
1 parent 967c2c0 commit d89d4a3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions angularfire-start/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ import { provideRouter } from '@angular/router';

export const appConfig: ApplicationConfig = {
providers: [
importProvidersFrom(
provideFirebaseApp(() => initializeApp(environment.firebase)),
provideFirestore(() => getFirestore()),
provideAuth(() => getAuth()),
provideFunctions(() => getFunctions()),
provideStorage(() => getStorage()),
provideMessaging(() => getMessaging())
),
provideRouter(routes)
provideRouter(routes),
provideFirebaseApp(() => initializeApp(environment.firebase)),
provideFirestore(() => getFirestore()),
provideAuth(() => getAuth()),
provideFunctions(() => getFunctions()),
provideStorage(() => getStorage()),
provideMessaging(() => getMessaging())
],
};

0 comments on commit d89d4a3

Please sign in to comment.