import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReactiveFormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; import { MatTreeModule } from '@angular/material/tree'; import { TreeComponent } from './components/tree.component'; const COMPONENTS = [TreeComponent]; const SERVICES = []; @NgModule({ imports: [ CommonModule, ReactiveFormsModule, MatButtonModule, MatIconModule, MatTreeModule ], exports: [...COMPONENTS], declarations: [...COMPONENTS] }) export class UCapUiOrganizationModule { public static forRoot(): ModuleWithProviders { return { ngModule: UCapUiOrganizationModule, providers: [...SERVICES] }; } }