MCPcopy Create free account
hub / github.com/angular/angular / TestCmp

Class TestCmp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
injectFunction · 0.90
getActiveConsumerFunction · 0.90
OutputInterface · 0.90

Tested by

no test coverage detected