123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import { NgModule } from '@angular/core';
- import { CommonModule } from '@angular/common';
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
- import { RouterModule } from '@angular/router';
- // delon
- import { AlainThemeModule } from '@delon/theme';
- import { DelonABCModule } from '@delon/abc';
- import { DelonChartModule } from '@delon/chart';
- import { DelonACLModule } from '@delon/acl';
- import { DelonFormModule } from '@delon/form';
- // i18n
- import { TranslateModule } from '@ngx-translate/core';
- // #region third libs
- import { NgZorroAntdModule } from 'ng-zorro-antd';
- import { CountdownModule } from 'ngx-countdown';
- import { UEditorModule } from 'ngx-ueditor';
- import { NgxTinymceModule } from 'ngx-tinymce';
- import { DecimalPointPipe } from './pipe/decimal-point.pipe';
- import { AppDisabledDirective } from './directive/app-disabled.directive';
- const THIRDMODULES = [NgZorroAntdModule, CountdownModule, UEditorModule, NgxTinymceModule];
- // #endregion
- // #region your componets & directives
- const COMPONENTS = [];
- const DIRECTIVES = [];
- // #endregion
- @NgModule({
- imports: [
- CommonModule,
- FormsModule,
- RouterModule,
- ReactiveFormsModule,
- AlainThemeModule.forChild(),
- DelonABCModule,
- DelonChartModule,
- DelonACLModule,
- DelonFormModule,
- // third libs
- ...THIRDMODULES,
- ],
- declarations: [
- // your components
- ...COMPONENTS,
- ...DIRECTIVES,
- DecimalPointPipe,
- AppDisabledDirective,
- ],
- exports: [
- CommonModule,
- FormsModule,
- ReactiveFormsModule,
- RouterModule,
- AlainThemeModule,
- DelonABCModule,
- DelonChartModule,
- DelonACLModule,
- DelonFormModule,
- // i18n
- TranslateModule,
- // third libs
- ...THIRDMODULES,
- // your components
- ...COMPONENTS,
- ...DIRECTIVES,
- DecimalPointPipe,
- AppDisabledDirective
- ],
- })
- export class SharedModule {}
|