I have a html template which should simply translate a state:
<ng-container [ngSwitch]="currentStatus">
<ng-container *ngSwitchCase="'DRAFT'" i18n="@@DraftStatus">
Draft
</ng-container>
<ng-container *ngSwitchCase= ...
<ng-container *ngSwitchDefault>
{{currentStatus}}
</ng-container>
</ng-container>
. End
But somehow as much as I try the content is always displayed as e.g. Draft . End. i.e. one additional space is added at the end of the container. I would
like to display it like Draft. End.
Trying to use in the compontent the setting preserveWhitespaces: false, doesn't help neither.
Any hints how to get rid of this extra space?
<ng-container *ngSwitchDefault> {{currentStatus}}</ng-container>and see if you still have the trailing space