| 1390 | } |
| 1391 | |
| 1392 | @Component({ |
| 1393 | selector: 'outer-cmp', |
| 1394 | template: `<span [i]="log('start')"></span |
| 1395 | ><inner-cmp [outerTpl]="tpl" |
| 1396 | ><ng-template><span [i]="log('tpl')"></span></ng-template |
| 1397 | ></inner-cmp>`, |
| 1398 | |
| 1399 | imports: [DummyDirective, forwardRef(() => InnerComp)], |
| 1400 | changeDetection: ChangeDetectionStrategy.Eager, |
| 1401 | }) |
| 1402 | class OuterComp { |
| 1403 | @ContentChild(TemplateRef, {static: true}) tpl!: TemplateRef<any>; |
| 1404 | |
| 1405 | constructor(public cdRef: ChangeDetectorRef) {} |
| 1406 | log(id: string) { |
| 1407 | log.push(`outer-${id}`); |
| 1408 | } |
| 1409 | } |
| 1410 | |
| 1411 | @Component({ |
| 1412 | selector: 'inner-cmp', |
nothing calls this directly
no test coverage detected