Created
April 17, 2020 09:00
-
-
Save kutanov/a9691f2e3e9618a8e3da13d4ab69f289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-comp', | |
templateUrl: './app-comp.component.html', | |
providers: [ | |
{ | |
provide: TRANSLOCO_LOADING_TEMPLATE, | |
useValue: '<p>Translation is loading...</p>' | |
} | |
] | |
}) | |
export class AppComp {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-container *transloco="let t; loadingTpl: loading"> | |
<h1>{{ t('title') }}</h1> | |
</ng-container> | |
<ng-template #loading> | |
<h1>Loading...</h1> | |
</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment