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

Class InsertionComponent

packages/platform-server/test/full_app_hydration_spec.ts:1657–1664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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',

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
InputInterface · 0.90

Tested by

no test coverage detected