You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
770 B
49 lines
770 B
4 years ago
|
import {
|
||
|
FormsModule,
|
||
|
ReactiveFormsModule,
|
||
|
} from '@angular/forms';
|
||
|
|
||
|
import {NgModule} from '@angular/core';
|
||
|
import {CommonModule} from '@angular/common';
|
||
|
import {NgZorroAntdModule} from 'ng-zorro-antd';
|
||
|
import {NgxNeditorModule} from '@notadd/ngx-neditor';
|
||
|
|
||
|
// 管道
|
||
|
import {TimesPipe , TextareaPipe} from './pipes';
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
const PIPES = [
|
||
|
TimesPipe,
|
||
|
TextareaPipe,
|
||
|
|
||
|
];
|
||
|
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [
|
||
|
CommonModule,
|
||
|
FormsModule,
|
||
|
ReactiveFormsModule,
|
||
|
NgZorroAntdModule,
|
||
|
NgxNeditorModule
|
||
|
],
|
||
|
declarations: [
|
||
|
...PIPES,
|
||
|
],
|
||
|
|
||
|
exports: [
|
||
|
...PIPES,
|
||
|
],
|
||
|
})
|
||
|
|
||
|
export class AppCommonModule {
|
||
|
static forRoot() {
|
||
|
return {
|
||
|
ngModule: AppCommonModule,
|
||
|
providers: [],
|
||
|
};
|
||
|
}
|
||
|
}
|