From f10380ff5da2910de7a95a19322aacd59cb8bbe0 Mon Sep 17 00:00:00 2001 From: Michael Prentice Date: Mon, 11 Jan 2021 15:14:11 -0500 Subject: [PATCH] docs(material/tree): add a description of the when predicate - update TODO comments since issue was closed as a duplicate, point to the new issue --- src/material/tree/node.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/material/tree/node.ts b/src/material/tree/node.ts index cb18a65e9e68..c40801fe529c 100644 --- a/src/material/tree/node.ts +++ b/src/material/tree/node.ts @@ -82,6 +82,7 @@ export class MatTreeNode extends _MatTreeNodeMixinBase /** * Wrapper for the CdkTree node definition with Material design styles. + * Captures the node's template and a when predicate that describes when this node should be used. */ @Directive({ selector: '[matTreeNodeDef]', @@ -139,9 +140,9 @@ export class MatNestedTreeNode extends CdkNestedTreeNode this._elementRef.nativeElement.classList.add('mat-nested-tree-node'); } - // This is a workaround for https://github.com/angular/angular/issues/23091 + // This is a workaround for https://github.com/angular/angular/issues/19145 // In aot mode, the lifecycle hooks from parent class are not called. - // TODO(tinayuangao): Remove when the angular issue #23091 is fixed + // TODO(tinayuangao): Remove when the angular issue #19145 is fixed ngOnInit() { super.ngOnInit(); }