Skip to content

Instantly share code, notes, and snippets.

@harrylincoln
Created July 12, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harrylincoln/f154bef2c422e30e9559145aeac88165 to your computer and use it in GitHub Desktop.
Save harrylincoln/f154bef2c422e30e9559145aeac88165 to your computer and use it in GitHub Desktop.
App module bootstrapping angularfire2 functionality
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