Created
July 12, 2017 20:45
-
-
Save harrylincoln/f154bef2c422e30e9559145aeac88165 to your computer and use it in GitHub Desktop.
App module bootstrapping angularfire2 functionality
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 { FormsModule } from '@angular/forms'; | |
import { HttpModule } from '@angular/http'; | |
import { AppComponent } from './app.component'; | |
import { AngularFireModule } from 'angularfire2'; | |
import { AngularFireDatabaseModule } from 'angularfire2/database'; | |
import { AngularFireAuthModule } from 'angularfire2/auth'; | |
import { environment } from '../environments/environment'; | |
import { RegisterComponent } from './register/register.component'; | |
import { RouterModule, Routes } from "@angular/router"; | |
import { AF } from "../providers/af"; | |
const routes: Routes = [ | |
{ path: 'register', component: RegisterComponent} | |
]; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
BrowserModule, | |
FormsModule, | |
HttpModule, | |
AngularFireModule.initializeApp( | |
environment.firebase | |
), | |
AngularFireDatabaseModule, | |
AngularFireAuthModule | |
], | |
providers: [AF], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment