Greatly reduced module imports hierarchy

- it is no longer needed manually importing numerous modules as
CoreModule re-exports them
This commit is contained in:
Denys Vuika
2016-09-23 13:58:40 +01:00
parent a92716c438
commit dd2d41db2c
15 changed files with 21 additions and 120 deletions

View File

@@ -25,9 +25,7 @@
*/
import { NgModule, ModuleWithProviders } from '@angular/core';
import { HttpModule } from '@angular/http';
import { CommonModule } from '@angular/common';
import { TranslateModule } from 'ng2-translate/ng2-translate';
import { CoreModule } from 'ng2-alfresco-core';
import { ViewerComponent } from './src/componets/viewer.component';
import { RenderingQueueServices } from './src/services/rendering-queue.services';
@@ -57,9 +55,7 @@ export const VIEWER_PROVIDERS: any[] = [
@NgModule({
imports: [
CommonModule,
HttpModule,
TranslateModule
CoreModule
],
declarations: [
...VIEWER_DIRECTIVES