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.
|
|
|
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';
|
|
|
|
import { SystemPipe } from './pipes/system.pipe';
|
|
|
|
import { CouponStatusPipe } from './pipes/coupon-status.pipe';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const PIPES = [
|
|
|
|
TimesPipe,
|
|
|
|
TextareaPipe,
|
|
|
|
SystemPipe,
|
|
|
|
CouponStatusPipe,
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
CommonModule,
|
|
|
|
FormsModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
NgZorroAntdModule,
|
|
|
|
NgxNeditorModule
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
...PIPES,
|
|
|
|
],
|
|
|
|
|
|
|
|
exports: [
|
|
|
|
...PIPES,
|
|
|
|
],
|
|
|
|
})
|
|
|
|
|
|
|
|
export class AppCommonModule {
|
|
|
|
static forRoot() {
|
|
|
|
return {
|
|
|
|
ngModule: AppCommonModule,
|
|
|
|
providers: [],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|