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 1
1
{
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
+ }
8
9
}
Original file line number Diff line number Diff line change 1
1
{
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
+ }
8
9
}
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ <h2>Simple translations without parameters</h2>
10
10
< p translate > demo.simple.text-as-content</ p >
11
11
12
12
< p > {{ "demo.simple.text-as-pipe-with-params" | translate: { value: "params" } }}</ p >
13
+
14
+ < p > {{ "standalone-component.extended" | translate }}</ p >
13
15
</ div >
14
16
</ div >
Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ import { PageContentComponent } from "../../components/page-content/page-content
21
21
} ) ,
22
22
} ) ,
23
23
] ,
24
- template : ` <h2>Component uses global TranslateService with extend</h2>
24
+ template : `
25
+ <h2>Component uses global TranslateService with extend</h2>
25
26
<app-language-switch />
26
- <app-page-content />` ,
27
+ <app-page-content />
28
+ ` ,
27
29
changeDetection : ChangeDetectionStrategy . OnPush ,
28
30
} )
29
31
export class ExtendedComponent {
You can’t perform that action at this time.
0 commit comments