license import { NgModule } from '@angular/core' ; import { CdkTreeModule } from '@angular/cdk/tree' ; import { CommonModule } from '@angular/common' ; import { MatCommonModule } from '@angular/material/core' ; import { MatNestedTreeNode , MatTreeNodeDef , MatTreeNode } from './node' ; import { MatTree } from './tree' ; import { MatTreeNodeToggle } from './toggle' ; import { MatTreeNodeOutlet } from './outlet' ; import { MatTreeNodePadding } from './padding' ; const MAT_TREE_DIRECTIVES = [ MatNestedTreeNode , MatTreeNodeDef , MatTreeNodePadding , MatTreeNodeToggle , MatTree , MatTreeNode , MatTreeNodeOutlet ] ; @ NgModule ( { imports : [ CdkTreeModule , CommonModule , MatCommonModule ] , exports : MAT_TREE_DIRECTIVES , declarations : MAT_TREE_DIRECTIVES , } ) export class MatTreeModule { }