]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/share/title/title.component.html
LP1822414 Angular format service formatValue pipe
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / title / title.component.html
1
2 <ng-template #titleStringTmpl let-pfx="pfx" let-sfx="sfx">
3
4   <ng-container *ngIf="pfx">
5     <ng-container *ngIf="sfx">
6       <!-- trim prefix value when it competes with a suffix and add a seperator -->
7       <ng-container>{{pfx | slice:0:12}} - </ng-container>
8     </ng-container>
9     <ng-container *ngIf="!sfx">{{pfx}}</ng-container>
10   </ng-container>
11
12   <ng-container *ngIf="sfx">{{sfx}}</ng-container>
13
14   <!-- if no values are defined, use a generic default -->
15   <ng-container *ngIf="!pfx && !sfx">Evergreen</ng-container>
16
17 </ng-template>
18 <eg-string #titleString [template]="titleStringTmpl"></eg-string>
19