| 1655 | describe('transplanted views', () => { |
| 1656 | it('should work when passing TemplateRef to a different component', async () => { |
| 1657 | @Component({ |
| 1658 | imports: [CommonModule], |
| 1659 | selector: 'insertion-component', |
| 1660 | template: ` <ng-container [ngTemplateOutlet]="template"></ng-container> `, |
| 1661 | }) |
| 1662 | class InsertionComponent { |
| 1663 | @Input() template!: TemplateRef<unknown>; |
| 1664 | } |
| 1665 | |
| 1666 | @Component({ |
| 1667 | selector: 'app', |