37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { MatInputModule } from '@angular/material/input';
|
|
import { ListItemComponent } from './components/list-item.component';
|
|
|
|
const COMPONENTS = [ListItemComponent];
|
|
const DIRECTIVES = [];
|
|
const SERVICES = [];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
FlexLayoutModule,
|
|
MatFormFieldModule,
|
|
MatIconModule,
|
|
MatInputModule
|
|
],
|
|
exports: [...COMPONENTS, ...DIRECTIVES],
|
|
declarations: [...COMPONENTS, ...DIRECTIVES]
|
|
})
|
|
export class UCapUiRoomModule {
|
|
public static forRoot(): ModuleWithProviders<UCapUiRoomModule> {
|
|
return {
|
|
ngModule: UCapUiRoomModule,
|
|
providers: [...SERVICES]
|
|
};
|
|
}
|
|
}
|