| 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(); |