import { NgModule , ModuleWithProviders } from '@angular/core' ; import { AngularFireModule } from 'angularfire2' ; import { Config } from './../../config/config' ; import { AuthenticationGuard } from './authentication.guard' ; /**
 * Do not specify providers for modules that might be imported by a lazy loaded module.
 */ @ NgModule ( { imports : [ AngularFireModule . initializeApp ( Config . FIREBASE_CONFIG , Config . FIREBASE_AUTH_CONFIG ) , ] , } ) export class AuthenticationModule { static forRoot ( ) { return { ngModule : AuthenticationModule , providers : [ AuthenticationGuard ] } ; } }