mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fixed core and shared module usage, lazy loading modules
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user