This commit is contained in:
Sofia Papacharalampous 2024-05-08 16:07:41 +03:00
parent 556e593cbe
commit 1a64ca7409
1 changed files with 0 additions and 3 deletions

View File

@ -7,9 +7,6 @@ import { Pipe, PipeTransform } from "@angular/core";
export class AppTitleCaseFormatPipe implements PipeTransform { export class AppTitleCaseFormatPipe implements PipeTransform {
transform(value: any, ...args: any[]) { transform(value: any, ...args: any[]) {
let foo1 = value.split('-');
let foo2 = foo1.map(element => element.charAt(0).toUpperCase() + element.slice(1))
let foo3 = foo2.join(' ');
return value.split('-').map(element => element.charAt(0).toUpperCase() + element.slice(1)).join(' '); return value.split('-').map(element => element.charAt(0).toUpperCase() + element.slice(1)).join(' ');
} }
} }