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 * as firebase from 'firebase' ; import { AngularFireModule } from 'angularfire2' ; export const firebaseConfig = { apiKey : '<your-key>' , authDomain : '<your-project-authdomain>' , databaseURL : '<your-database-URL>' , storageBucket : '<your-storage-bucket>' } ; @ NgModule ( { declarations : [ AppComponent ] , imports : [ BrowserModule , FormsModule , HttpModule , AngularFireModule . initializeApp ( firebaseConfig ) ] , providers : [ ] , bootstrap : [ AppComponent ] } ) export class AppModule { }