Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ register
Method
register
src/aria/private/utils/collection.ts:30–36 ·
view source on GitHub ↗
(item: T)
Source
from the content-addressed store, hash-verified
28
});
29
30
register(item: T) {
31
this._items.update(set => {
32
const
newSet =
new
Set(set);
33
newSet.add(item);
34
return
newSet;
35
});
36
}
37
38
unregister(item: T) {
39
this._items.update(set => {
Callers
10
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
constructor
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
ngOnInit
Method · 0.45
Calls
2
update
Method · 0.65
add
Method · 0.45
Tested by
1
constructor
Method · 0.36