a4-tree
v9.0.0
Published
Tree structure
Downloads
4
Readme
Angular Tree
Angular 7 Tree
How To Install
- npm install --save-dev a4-tree
How To Use
In your app.module.ts
@NgModule({
imports: [
...
TreeModule.forRoot(),
...
],
<ng2tree [root]="root"></ng2tree>
root must be a TreeNode
Tree Node interface
export interface TreeNode {
id: string;
text: string;
ngClass: string;
children: TreeNode[] | null;
expanded?: boolean;
loading?: boolean;
}