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

Method register

src/aria/private/utils/collection.ts:26–31  ·  view source on GitHub ↗
(item: T)

Source from the content-addressed store, hash-verified

24 readonly orderedItems: Signal<T[]> = this._sortedItems.asReadonly();
25
26 register(item: T) {
27 if (!this._items.has(item)) {
28 this._items.add(item);
29 this._sortedItems.set(this._getSortedItems());
30 }
31 }
32
33 unregister(item: T) {
34 if (this._items.has(item)) {

Callers 10

ngOnInitMethod · 0.45
constructorMethod · 0.45
ngOnInitMethod · 0.45
ngOnInitMethod · 0.45
ngOnInitMethod · 0.45
constructorMethod · 0.45
ngOnInitMethod · 0.45
ngOnInitMethod · 0.45
ngOnInitMethod · 0.45
constructorMethod · 0.45

Calls 3

_getSortedItemsMethod · 0.95
setMethod · 0.80
addMethod · 0.45

Tested by 1

constructorMethod · 0.36