Mat-tree create a tree with values to display and ids
问题 I'm learning how to use mat-tree following the docs, but now I need to use a data source tree that has not only strings defined in it, because when I click a node I need to know its id. This is the stackblitz of my project. Basically I need to use this tree with checkboxes that I've built following the docs, but now my data source is this: const TREE_DATA:TodoItemNode = { item: "First item", children: [{ item: 'Second item', children:[ { item: "Third item", id: 3 } ], id:2 }], id:1 } So I