import { NgModule } from "@angular/core" ; import { RouterModule , Routes } from "@angular/router" ; import { EffectsModule } from "@ngrx/effects" ; import { BalanceEffect } from "./effects/balance.effect" ; import { AccountHelperService } from "./services/account-helper.service" ; import { HttpModule } from "@angular/http" ; export const ROUTES = [ { path : "" , loadChildren : "app/swap/swap.module#SwapModule" , data : { preload : true } } , { path : "wallet" , loadChildren : "app/wallet/wallet.module#WalletModule" , data : { preload : true } } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( ROUTES ) , EffectsModule . forFeature ( [ BalanceEffect ] ) , HttpModule , ] , providers : [ AccountHelperService , ] } ) export class CoreAppModule { }