| 77 | }); |
| 78 | |
| 79 | @Component({ |
| 80 | selector: 'testCollection', |
| 81 | template: '<ng-content />', |
| 82 | }) |
| 83 | class 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', |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…