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

Class TestItemComponent

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

Source from the content-addressed store, hash-verified

96}
97
98@Component({
99 selector: 'testItem',
100 template: `
101 <div>{{value}}</div>
102 `,
103})
104class TestItemComponent implements HasElement, OnDestroy {
105 readonly element = inject(ElementRef).nativeElement as HTMLElement;
106 private readonly _parent = inject(TestCollectionComponent);
107
108 @Input() value!: string;
109
110 constructor() {
111 afterNextRender(() => {
112 this._parent._collection.register(this);
113 });
114 }
115
116 ngOnDestroy() {
117 this._parent._collection.unregister(this);
118 }
119}
120
121@Component({
122 template: `

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…