MCPcopy
hub / github.com/angular/angular / InnerComp

Class InnerComp

packages/core/test/linker/change_detection_integration_spec.ts:1427–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425 }
1426
1427 @Component({
1428 selector: 'inner-cmp',
1429 template: `<span [i]="log('start')"></span>><ng-container
1430 [ngTemplateOutlet]="outerTpl"
1431 ></ng-container
1432 ><ng-container [ngTemplateOutlet]="tpl"></ng-container>`,
1433 standalone: false,
1434 changeDetection: ChangeDetectionStrategy.Eager,
1435 })
1436 class InnerComp {
1437 @ContentChild(TemplateRef, {static: true}) tpl!: TemplateRef<any>;
1438 @Input() outerTpl: TemplateRef<any> | undefined;
1439
1440 constructor(public cdRef: ChangeDetectorRef) {}
1441 log(id: string) {
1442 log.push(`inner-${id}`);
1443 }
1444 }
1445
1446 let ctx: ComponentFixture<MainComp>;
1447 let mainComp: MainComp;

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
InputInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…