import { HttpClientModule } from '@angular/common/http' ; import { NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { AppRoutingModule } from './app-routing.module' ; import { AppComponent } from './app.component' ; import { CoreModule } from './core' ; import { DataServiceConfig , DataServicesModule } from './data-services' ; import { AppStoreModule } from './store/app-store.module' ; const dataServiceConfig = { root : 'api' , timeout : 3000 , getDelay : 500 , saveDelay : 800 } ; @ NgModule ( { imports : [ BrowserModule , BrowserAnimationsModule , CoreModule , DataServicesModule . forRoot ( { config : dataServiceConfig , pluralNames : { Hero : 'Heroes' } } ) , HttpClientModule , AppRoutingModule , AppStoreModule ] , declarations : [ AppComponent ] , bootstrap : [ AppComponent ] } ) export class AppModule { }