next-ucap-messenger/projects/ucap-webmessenger-ui-organization/src/lib/ucap-ui-organization.module.ts

43 lines
1.2 KiB
TypeScript

import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatTreeModule } from '@angular/material/tree';
import { TenantSearchComponent } from './components/tenant-search.component';
import { TreeComponent } from './components/tree.component';
const COMPONENTS = [TenantSearchComponent, TreeComponent];
const SERVICES = [];
@NgModule({
imports: [
CommonModule,
ReactiveFormsModule,
ScrollingModule,
MatButtonModule,
MatIconModule,
MatInputModule,
MatSelectModule,
MatTreeModule
],
exports: [...COMPONENTS],
declarations: [...COMPONENTS]
})
export class UCapUiOrganizationModule {
public static forRoot(): ModuleWithProviders<UCapUiOrganizationModule> {
return {
ngModule: UCapUiOrganizationModule,
providers: [...SERVICES]
};
}
}