File tree Expand file tree Collapse file tree 4 files changed +20
-14
lines changed
Expand file tree Collapse file tree 4 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 11{
2- "demo" : {
3- "title" : " Extended: Test Anwendung (overwrites to global)"
4- },
5- "standalone-component" : {
6- "title" : " Extended: Eigenständige Komponente (overwrites to global)"
7- }
2+ "demo" : {
3+ "title" : " Extended: Test Anwendung (overwrites to global)"
4+ },
5+ "standalone-component" : {
6+ "title" : " Extended: Eigenständige Komponente (overwrites to global)" ,
7+ "extended" : " Extended: Nur Lehsbar durch Extended"
8+ }
89}
Original file line number Diff line number Diff line change 11{
2- "demo" : {
3- "title" : " Extended: Test Application (overwrites to global)"
4- },
5- "standalone-component" : {
6- "title" : " Extended: Standalone Component (overwrites to global)"
7- }
2+ "demo" : {
3+ "title" : " Extended: Test Application (overwrites to global)"
4+ },
5+ "standalone-component" : {
6+ "title" : " Extended: Standalone Component (overwrites to global)" ,
7+ "extended" : " Extended: Readable only by extended"
8+ }
89}
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ <h2>Simple translations without parameters</h2>
1010 < p translate > demo.simple.text-as-content</ p >
1111
1212 < p > {{ "demo.simple.text-as-pipe-with-params" | translate: { value: "params" } }}</ p >
13+
14+ < p > {{ "standalone-component.extended" | translate }}</ p >
1315 </ div >
1416</ div >
Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ import { PageContentComponent } from "../../components/page-content/page-content
2121 } ) ,
2222 } ) ,
2323 ] ,
24- template : ` <h2>Component uses global TranslateService with extend</h2>
24+ template : `
25+ <h2>Component uses global TranslateService with extend</h2>
2526 <app-language-switch />
26- <app-page-content />` ,
27+ <app-page-content />
28+ ` ,
2729 changeDetection : ChangeDetectionStrategy . OnPush ,
2830} )
2931export class ExtendedComponent {
You can’t perform that action at this time.
0 commit comments