mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Greatly reduced module imports hierarchy
- it is no longer needed manually importing numerous modules as CoreModule re-exports them
This commit is contained in:
@@ -16,11 +16,8 @@
|
||||
*/
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { HttpModule } from '@angular/http';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
import { TranslateModule, TranslateLoader } from 'ng2-translate/ng2-translate';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { SearchModule } from 'ng2-alfresco-search';
|
||||
import { LoginModule } from 'ng2-alfresco-login';
|
||||
@@ -37,9 +34,6 @@ import { ActivitiProcessListModule } from 'ng2-activiti-processlist';
|
||||
import { AppComponent } from './app.component';
|
||||
import { routing } from './app.routes';
|
||||
|
||||
import { AlfrescoTranslationLoader } from 'ng2-alfresco-core';
|
||||
import { Http } from '@angular/http';
|
||||
|
||||
import {
|
||||
DataTableDemoComponent,
|
||||
SearchComponent,
|
||||
@@ -57,14 +51,6 @@ import {
|
||||
@NgModule({
|
||||
imports: [
|
||||
BrowserModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
HttpModule,
|
||||
TranslateModule.forRoot({
|
||||
provide: TranslateLoader,
|
||||
useFactory: (http) => new AlfrescoTranslationLoader(http),
|
||||
deps: [Http]
|
||||
}),
|
||||
routing,
|
||||
CoreModule.forRoot(),
|
||||
LoginModule,
|
||||
|
Reference in New Issue
Block a user