()
| 61 | _indent: number = 40; |
| 62 | |
| 63 | constructor() { |
| 64 | this._setPadding(); |
| 65 | this._dir?.change.pipe(takeUntil(this._destroyed)).subscribe(() => this._setPadding(true)); |
| 66 | |
| 67 | // In Ivy the indentation binding might be set before the tree node's data has been added, |
| 68 | // which means that we'll miss the first render. We have to subscribe to changes in the |
| 69 | // data to ensure that everything is up to date. |
| 70 | this._treeNode._dataChanges.subscribe(() => this._setPadding()); |
| 71 | } |
| 72 | |
| 73 | ngOnDestroy() { |
| 74 | this._destroyed.next(); |
nothing calls this directly
no test coverage detected