clean up
This commit is contained in:
parent
556e593cbe
commit
1a64ca7409
|
@ -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(' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue