()
| 1390 | } |
| 1391 | |
| 1392 | ngOnInit(): void { |
| 1393 | this._parentNodeAriaLevel = getParentNodeAriaLevel(this._elementRef.nativeElement); |
| 1394 | this._tree |
| 1395 | ._getExpansionModel() |
| 1396 | .changed.pipe( |
| 1397 | map(() => this.isExpanded), |
| 1398 | distinctUntilChanged(), |
| 1399 | takeUntil(this._destroyed), |
| 1400 | ) |
| 1401 | .pipe(takeUntil(this._destroyed)) |
| 1402 | .subscribe(() => this._changeDetectorRef.markForCheck()); |
| 1403 | this._tree._setNodeTypeIfUnset(this._type); |
| 1404 | this._tree._registerNode(this); |
| 1405 | } |
| 1406 | |
| 1407 | ngOnDestroy() { |
| 1408 | // If this is the last tree node being destroyed, |
nothing calls this directly
no test coverage detected