We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ef2dc commit 6729b6dCopy full SHA for 6729b6d
src/demo-app/tree/checklist-tree-demo/checklist-tree-demo.ts
@@ -10,6 +10,7 @@ import {SelectionModel} from '@angular/cdk/collections';
10
import {FlatTreeControl} from '@angular/cdk/tree';
11
import {MatTreeFlattener, MatTreeFlatDataSource} from '@angular/material/tree';
12
import {TodoItemNode, ChecklistDatabase} from './checklist-database';
13
+import {BehaviorSubject} from 'rxjs';
14
15
/**
16
* Checklist demo with flat tree
@@ -51,7 +52,7 @@ export class ChecklistTreeDemo {
51
52
return node.children.value.length > 0;
53
}
54
- getChildren = (node: TodoItemNode) => {
55
+ getChildren = (node: TodoItemNode): BehaviorSubject<TodoItemNode[]> => {
56
return node.children;
57
58
0 commit comments