fix(tree): fix nested node is not working (#10635)

This commit is contained in:
tinayuangao
2018-03-30 13:09:54 -07:00
committed by Joey Perrott
parent 5b7a6a39cc
commit 7857b92c47
+11
View File
@@ -101,4 +101,15 @@ export class MatNestedTreeNode<T> extends _MatNestedTreeNodeMixinBase<T>
this.tabIndex = Number(tabIndex) || 0;
}
// This is a workaround for https://github.com/angular/angular/issues/23091
// In aot mode, the lifecycle hooks from parent class are not called.
// TODO(tinayuangao): Remove when the angular issue #23091 is fixed
ngAfterContentInit() {
super.ngAfterContentInit();
}
ngOnDestroy() {
super.ngOnDestroy();
}
}