MCPcopy
hub / github.com/angular/angular / OuterComp

Class OuterComp

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

Source from the content-addressed store, hash-verified

1407 }
1408
1409 @Component({
1410 selector: 'outer-cmp',
1411 template: `<span [i]="log('start')"></span
1412 ><inner-cmp [outerTpl]="tpl"
1413 ><ng-template><span [i]="log('tpl')"></span></ng-template
1414 ></inner-cmp>`,
1415 standalone: false,
1416 changeDetection: ChangeDetectionStrategy.Eager,
1417 })
1418 class OuterComp {
1419 @ContentChild(TemplateRef, {static: true}) tpl!: TemplateRef<any>;
1420
1421 constructor(public cdRef: ChangeDetectorRef) {}
1422 log(id: string) {
1423 log.push(`outer-${id}`);
1424 }
1425 }
1426
1427 @Component({
1428 selector: 'inner-cmp',

Callers

nothing calls this directly

Calls 1

ComponentInterface · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…