Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Component({
selector: 'app-comp',
templateUrl: './app-comp.component.html',
providers: [
{
provide: TRANSLOCO_LOADING_TEMPLATE,
useValue: '<p>Translation is loading...</p>'
}
]
})
export class AppComp {}
<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
You can’t perform that action at this time.