MCPcopy Index your code
hub / github.com/angular/angular / AppComponent

Class AppComponent

packages/core/test/acceptance/component_spec.ts:980–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978
979 it('should throw if required query is read in the constructor', () => {
980 @Component({
981 template: `<div #el></div>`,
982 })
983 class AppComponent {
984 divEl = viewChild.required<ElementRef<HTMLDivElement>>('el');
985
986 constructor() {
987 this.divEl();
988 }
989 }
990
991 // non-required query results are undefined before we run creation mode on the view queries
992 expect(() => {

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
requiredMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…