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 { HeaderComponent } from "./components/header/header.component" ; import { FooterComponent } from "./components/footer/footer.component" ; import { AngularFireModule } from "angularfire2" ; import { PostDetailComponent } from "./components/post/detail/post.detail.component" ; import { PostWriteComponent } from "./components/post/write/post.write.component" ; import { Router , RouterModule } from "@angular/router" ; import { router } from "./app.router" ; import { PostListComponent } from "./components/post/list/post.list.component" ; import { AuthService } from "./service/auth.service" ; import { RemoveMarkdownPipe } from "./pipe/remove-markdown.pipe" ; import { ReversePipe } from "./pipe/reverse.pipe" ; import { IsLikedPipe } from "./components/post/list/post.like.pipe" ; import { ImageUploadModule } from 'ng2-imageupload' ; import { AuthGuard } from "./service/auth.guard" ; import { PostConfirmGuard } from "./components/post/write/post.confirm.guard" ; export const firebaseConfig = { apiKey : "AIzaSyDRWInNTqMZMkbbFxeJfbjHN3dwSZLJbKI" , authDomain : "yopyop-5e569.firebaseapp.com" , databaseURL : "https://yopyop-5e569.firebaseio.com" , storageBucket : "yopyop-5e569.appspot.com" , messagingSenderId : "798678080282" } ; @ NgModule ( { declarations : [ AppComponent , HeaderComponent , FooterComponent , PostListComponent , PostDetailComponent , RemoveMarkdownPipe , ReversePipe , IsLikedPipe , PostWriteComponent ] , imports : [ BrowserModule , FormsModule , HttpModule , AngularFireModule . initializeApp ( firebaseConfig ) , RouterModule . forRoot ( router ) , ImageUploadModule ] , providers : [ AuthService , AuthGuard , PostConfirmGuard ] , bootstrap : [ AppComponent ] } ) export class AppModule { }