mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
Add "material theme link" component
This commit is contained in:
parent
d0b58820be
commit
f39f10c12d
18 changed files with 135 additions and 32 deletions
11
docs/app/shared/pipes/capitalize.pipe.ts
Normal file
11
docs/app/shared/pipes/capitalize.pipe.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({ name: 'ngxCapitalize' })
|
||||
export class CapitalizePipe implements PipeTransform {
|
||||
|
||||
transform(input: string): string {
|
||||
return input && input.length
|
||||
? (input.charAt(0).toUpperCase() + input.slice(1).toLowerCase())
|
||||
: input;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue