| 30 | describe('view', () => { |
| 31 | it('should query for an optional element in a template', () => { |
| 32 | @Component({ |
| 33 | template: `<div #el></div>`, |
| 34 | }) |
| 35 | class AppComponent { |
| 36 | divEl = viewChild<ElementRef<HTMLDivElement>>('el'); |
| 37 | foundEl = computed(() => this.divEl() != null); |
| 38 | } |
| 39 | |
| 40 | const fixture = TestBed.createComponent(AppComponent); |
| 41 | // with signal based queries we _do_ have query results after the creation mode |
nothing calls this directly
no test coverage detected
searching dependent graphs…