fixed core and shared module usage, lazy loading modules

This commit is contained in:
William Welling
2017-09-26 11:44:07 -05:00
parent 88120dd85b
commit 3d02e660da
71 changed files with 89 additions and 95 deletions

View File

@@ -4,7 +4,6 @@ import { CommonModule } from '@angular/common';
import { SharedModule } from '../shared/shared.module';
import { isNotEmpty } from '../shared/empty.util';
import { FooterComponent } from './footer/footer.component';
import { DSpaceRESTv2Service } from './dspace-rest-v2/dspace-rest-v2.service';
import { ObjectCacheService } from './cache/object-cache.service';
import { ResponseCacheService } from './cache/response-cache.service';
@@ -19,31 +18,41 @@ import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { coreReducers } from './core.reducers';
import { ApiService } from '../shared/api.service';
import { HostWindowService } from '../shared/host-window.service';
import { NativeWindowFactory, NativeWindowService } from '../shared/window.service';
import { ServerResponseService } from '../shared/server-response.service';
const IMPORTS = [
CommonModule,
SharedModule,
StoreModule.forFeature('core', coreReducers, { }),
StoreModule.forFeature('core', coreReducers, {}),
EffectsModule.forFeature(coreEffects)
];
const DECLARATIONS = [
FooterComponent
];
const EXPORTS = [
FooterComponent
];
const PROVIDERS = [
ApiService,
CommunityDataService,
CollectionDataService,
ItemDataService,
DSpaceRESTv2Service,
HostWindowService,
ItemDataService,
ObjectCacheService,
PaginationComponentOptions,
ResponseCacheService,
RequestService,
RemoteDataBuildService
RemoteDataBuildService,
ServerResponseService,
{ provide: NativeWindowService, useFactory: NativeWindowFactory }
];
@NgModule({