MCPcopy Create free account
hub / github.com/angular/components / ngOnDestroy

Method ngOnDestroy

src/aria/tree/tree-item.ts:153–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 }
152
153 ngOnDestroy() {
154 if (this.parent() instanceof TreeItemGroup) {
155 (this.parent() as TreeItemGroup<V>)._unregister(this);
156 }
157 this.tree()._collection.unregister(this);
158 }
159
160 _register(group: TreeItemGroup<V>) {
161 this._group.set(group);

Callers

nothing calls this directly

Calls 3

parentMethod · 0.80
unregisterMethod · 0.80
_unregisterMethod · 0.45

Tested by

no test coverage detected