import { NgModule } from "@angular/core" ; import { BrowserModule } from "@angular/platform-browser" ; import { FormsModule , ReactiveFormsModule } from "@angular/forms" ; /**
 * Modules
 */ import { AuthModule } from "./auth/auth.module" ; import { CartModule } from "./cart/cart.module" ; import { CategoryModule } from "./category/category.module" ; import { ProductModule } from "./product/product.module" ; import { AppComponent } from "./app.component" ; import { NavbarComponent } from "./navbar/navbar.component" ; import { FooterComponent } from "./footer/footer.component" ; import { WelcomeComponent } from "./welcome/welcome.component" ; import { CheckoutViewComponent } from "./checkout/checkout-view.component" ; import { routing } from "./app.routes" ; import { AngularFireModule , AuthProviders , AuthMethods } from "angularfire2" ; import * as firebase from "firebase" ; export var firebaseConfig = { apiKey : "AIzaSyDDrc42huFLZqnG-pAg1Ly9VnFtVx3m-Cg" , authDomain : "ecommerce-a99fc.firebaseapp.com" , databaseURL : "https://ecommerce-a99fc.firebaseio.com" , storageBucket : "ecommerce-a99fc.appspot.com" , } ; const firebaseAuthConfig = { provider : AuthProviders . Password , method : AuthMethods . Redirect } ; @ NgModule ( { imports : [ AngularFireModule . initializeApp ( firebaseConfig , firebaseAuthConfig ) , AuthModule , BrowserModule , FormsModule , ReactiveFormsModule , routing , CartModule , CategoryModule , ProductModule ] , declarations : [ AppComponent , NavbarComponent , FooterComponent , WelcomeComponent , CheckoutViewComponent ] , bootstrap : [ AppComponent ] } ) export class AppModule { }