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

Method constructor

src/aria/tree/tree-item-group.ts:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 readonly ownedBy = input.required<TreeItem<V>>();
67
68 constructor() {
69 effect(onCleanup => {
70 const owner = this.ownedBy();
71 untracked(() => {
72 this._deferredContent.deferredContentAware.set(owner);
73 owner._register(this);
74 });
75 onCleanup(() => owner._unregister());
76 });
77 }
78
79 _register(child: TreeItem<V>) {
80 this._unorderedItems().add(child);

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
_registerMethod · 0.45
_unregisterMethod · 0.45

Tested by

no test coverage detected