mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
fixed core and shared module usage, lazy loading modules
This commit is contained in:
@@ -7,13 +7,11 @@ import { NgxPaginationModule } from 'ngx-pagination';
|
||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { ApiService } from './api.service';
|
||||
import { PaginationComponent } from './pagination/pagination.component';
|
||||
import { FileSizePipe } from './utils/file-size-pipe';
|
||||
import { ThumbnailComponent } from '../thumbnail/thumbnail.component';
|
||||
import { SafeUrlPipe } from './utils/safe-url-pipe';
|
||||
import { HostWindowService } from './host-window.service';
|
||||
import { NativeWindowFactory, NativeWindowService } from './window.service';
|
||||
|
||||
import { ComcolPageContentComponent } from './comcol-page-content/comcol-page-content.component';
|
||||
import { ComcolPageHeaderComponent } from './comcol-page-header/comcol-page-header.component';
|
||||
import { ComcolPageLogoComponent } from './comcol-page-logo/comcol-page-logo.component';
|
||||
@@ -24,7 +22,6 @@ import { ItemListElementComponent } from '../object-list/item-list-element/item-
|
||||
import { CommunityListElementComponent } from '../object-list/community-list-element/community-list-element.component';
|
||||
import { CollectionListElementComponent } from '../object-list/collection-list-element/collection-list-element.component';
|
||||
import { TruncatePipe } from './utils/truncate.pipe';
|
||||
import { ServerResponseService } from './server-response.service';
|
||||
|
||||
const MODULES = [
|
||||
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
|
||||
@@ -38,11 +35,11 @@ const MODULES = [
|
||||
];
|
||||
|
||||
const PIPES = [
|
||||
// put shared pipes here
|
||||
FileSizePipe,
|
||||
SafeUrlPipe,
|
||||
EnumKeysPipe,
|
||||
TruncatePipe
|
||||
// put pipes here
|
||||
];
|
||||
|
||||
const COMPONENTS = [
|
||||
@@ -60,10 +57,7 @@ const COMPONENTS = [
|
||||
];
|
||||
|
||||
const PROVIDERS = [
|
||||
ApiService,
|
||||
HostWindowService,
|
||||
{ provide: NativeWindowService, useFactory: NativeWindowFactory },
|
||||
ServerResponseService
|
||||
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
Reference in New Issue
Block a user