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

Class OuterComp

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

Source from the content-addressed store, hash-verified

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',

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
forwardRefFunction · 0.90

Tested by

no test coverage detected