MCPcopy Index your code
hub / github.com/angular/components / constructor

Method constructor

src/cdk/tree/padding.ts:63–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

_setPaddingMethod · 0.95

Tested by

no test coverage detected