Created
December 3, 2018 09:34
-
-
Save wojtek1150/d61702a0ff242f302f2db52b2e6ff5e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
import { AngularFireModule } from '@angular/fire'; | |
import { AngularFirestoreModule } from '@angular/fire/firestore'; | |
import { AngularFireAuthModule } from '@angular/fire/auth'; | |
import { environment } from '../environments/environment'; | |
@NgModule({ | |
imports: [ | |
BrowserModule, | |
AngularFireModule.initializeApp(environment.firebase, 'my-app-name'), // imports firebase/app needed for everything | |
AngularFirestoreModule, // imports firebase/firestore, only needed for database features | |
AngularFireAuthModule, // imports firebase/auth, only needed for auth features, | |
], | |
declarations: [ AppComponent ], | |
bootstrap: [ AppComponent ] | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment