import './vendor.ts' ; import { NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { HTTP_INTERCEPTORS } from '@angular/common/http' ; import { NgbDatepickerConfig } from '@ng-bootstrap/ng-bootstrap' ; import { NgxWebstorageModule } from 'ngx-webstorage' ; import { NgJhipsterModule } from 'ng-jhipster' ; import { AuthInterceptor } from './blocks/interceptor/auth.interceptor' ; import { AuthExpiredInterceptor } from './blocks/interceptor/auth-expired.interceptor' ; import { ErrorHandlerInterceptor } from './blocks/interceptor/errorhandler.interceptor' ; import { NotificationInterceptor } from './blocks/interceptor/notification.interceptor' ; import { FrontendSharedModule } from 'app/shared' ; import { FrontendCoreModule } from 'app/core' ; import { FrontendAppRoutingModule } from './app-routing.module' ; import { FrontendHomeModule } from './home/home.module' ; import { FrontendAccountModule } from './account/account.module' ; import { FrontendEntityModule } from './entities/entity.module' ; import * as moment from 'moment' ; import { JhiMainComponent , NavbarComponent , FooterComponent , PageRibbonComponent , ActiveMenuDirective , ErrorComponent } from './layouts' ; @ NgModule ( { imports : [ BrowserModule , NgxWebstorageModule . forRoot ( { prefix : 'jhi' , separator : '-' } ) , NgJhipsterModule . forRoot ( { alertAsToast : false , alertTimeout : 5000 , i18nEnabled : true , defaultI18nLang : 'en' } ) , FrontendSharedModule . forRoot ( ) , FrontendCoreModule , FrontendHomeModule , FrontendAccountModule , FrontendEntityModule , FrontendAppRoutingModule ] , declarations : [ JhiMainComponent , NavbarComponent , ErrorComponent , PageRibbonComponent , ActiveMenuDirective , FooterComponent ] , providers : [ { provide : HTTP_INTERCEPTORS , useClass : AuthInterceptor , multi : true } , { provide : HTTP_INTERCEPTORS , useClass : AuthExpiredInterceptor , multi : true } , { provide : HTTP_INTERCEPTORS , useClass : ErrorHandlerInterceptor , multi : true } , { provide : HTTP_INTERCEPTORS , useClass : NotificationInterceptor , multi : true } ] , bootstrap : [ JhiMainComponent ] } ) export class FrontendAppModule { constructor ( private dpConfig ) { this . dpConfig . minDate = { year : moment ( ) . year ( ) - 100 , month : 1 , day : 1 } ; } }