MCPcopy
hub / github.com/angular/components / TestCollectionComponent

Class TestCollectionComponent

src/aria/private/utils/collection.spec.ts:79–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77});
78
79@Component({
80 selector: 'testCollection',
81 template: '<ng-content />',
82})
83class TestCollectionComponent implements HasElement, OnDestroy {
84 readonly _collection = new SortedCollection<TestItemComponent>();
85 readonly element = inject(ElementRef).nativeElement as HTMLElement;
86
87 constructor() {
88 afterNextRender(() => {
89 this._collection.startObserving(this.element);
90 });
91 }
92
93 ngOnDestroy() {
94 this._collection.stopObserving();
95 }
96}
97
98@Component({
99 selector: 'testItem',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…