Skip to content

Commit bd88e64

Browse files
authored
docs(material/tree): add a description of the when predicate (#21545)
- update TODO comments since issue was closed as a duplicate, point to the new issue
1 parent b842891 commit bd88e64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/material/tree/node.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class MatTreeNode<T, K = T> extends _MatTreeNodeMixinBase<T, K>
8282

8383
/**
8484
* Wrapper for the CdkTree node definition with Material design styles.
85+
* Captures the node's template and a when predicate that describes when this node should be used.
8586
*/
8687
@Directive({
8788
selector: '[matTreeNodeDef]',
@@ -139,9 +140,9 @@ export class MatNestedTreeNode<T, K = T> extends CdkNestedTreeNode<T, K>
139140
this._elementRef.nativeElement.classList.add('mat-nested-tree-node');
140141
}
141142

142-
// This is a workaround for https://github.com/angular/angular/issues/23091
143+
// This is a workaround for https://github.com/angular/angular/issues/19145
143144
// In aot mode, the lifecycle hooks from parent class are not called.
144-
// TODO(tinayuangao): Remove when the angular issue #23091 is fixed
145+
// TODO(tinayuangao): Remove when the angular issue #19145 is fixed
145146
ngOnInit() {
146147
super.ngOnInit();
147148
}

0 commit comments

Comments
 (0)