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

Class AppComponent

packages/core/test/acceptance/i18n_spec.ts:1648–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646 });
1647
1648 @Component({
1649 template: `
1650 <ng-template #myTemp i18n let-type
1651 >{type, select, A {A} B {B} other {other - {{ typeC // i18n(ph="PH WITH SPACES") }}}}
1652 </ng-template>
1653
1654 <div *ngFor="let type of types">
1655 <ng-container *ngTemplateOutlet="myTemp; context: {$implicit: type}"> </ng-container>
1656 </div>
1657 `,
1658
1659 imports: [CommonModule],
1660 })
1661 class AppComponent {
1662 types = ['A', 'B', 'C'];
1663 }
1664
1665 const fixture = TestBed.createComponent(AppComponent);
1666 fixture.detectChanges();

Callers

nothing calls this directly

Calls 1

ComponentInterface · 0.90

Tested by

no test coverage detected