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

Class InsertionComponent

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

Source from the content-addressed store, hash-verified

1646 describe('transplanted views', () => {
1647 it('should work when passing TemplateRef to a different component', async () => {
1648 @Component({
1649 imports: [CommonModule],
1650 selector: 'insertion-component',
1651 template: ` <ng-container [ngTemplateOutlet]="template"></ng-container> `,
1652 })
1653 class InsertionComponent {
1654 @Input() template!: TemplateRef<unknown>;
1655 }
1656
1657 @Component({
1658 selector: 'app',

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
InputInterface · 0.90

Tested by

no test coverage detected