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

Class TestCmp

packages/core/test/render3/reactive_safety_spec.ts:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 describe('view creation', () => {
37 it('should be safe to call ViewContainerRef.createEmbeddedView', () => {
38 @Component({
39 template: `<ng-template #tmpl>Template</ng-template>`,
40 })
41 class TestCmp {
42 vcr = inject(ViewContainerRef);
43 @ViewChild('tmpl', {read: TemplateRef}) tmpl!: TemplateRef<unknown>;
44 }
45
46 const fix = TestBed.createComponent(TestCmp);
47 fix.detectChanges();

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
injectFunction · 0.90
OutputInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…