Add message buttons to control the user flow
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'capitalize',
|
||||
})
|
||||
export class CapitalizePipe implements PipeTransform {
|
||||
transform(value: string): string {
|
||||
if (!value) {
|
||||
return '';
|
||||
}
|
||||
return value[0].toLocaleUpperCase() + value.toLocaleLowerCase().slice(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user