refactor(auth): move auth into core module

This commit is contained in:
Dmitry Nehaychik 2017-08-02 18:13:50 +03:00
parent 75dd743244
commit 671056ddd9
4 changed files with 32 additions and 30 deletions

View file

@ -8,7 +8,6 @@ import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { NgaAuthModule, NgaDummyAuthProvider } from '@akveo/nga-auth';
import { CoreModule } from './@core/core.module';
import { AppComponent } from './app.component';
@ -25,20 +24,6 @@ import { ThemeModule } from './@theme/theme.module';
CoreModule,
ThemeModule.forRoot(),
CoreModule.forRoot(),
NgaAuthModule,
NgaAuthModule.forRoot({
providers: {
email: {
service: NgaDummyAuthProvider,
config: {
delay: 1000,
login: {
rememberMe: true,
}
},
},
}
}),
],
bootstrap: [AppComponent],
providers: [