| 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', |
nothing calls this directly
no test coverage detected
searching dependent graphs…