File

src/app/shared/pipes/upper-first.pipe.ts

Metadata

Name upperFirst

Methods

transform
transform(value: string)
Parameters :
Name Type Optional
value string No
Returns : string
import { Pipe, PipeTransform } from '@angular/core';

import * as _ from 'lodash';

@Pipe({
  name: 'upperFirst'
})
export class UpperFirstPipe implements PipeTransform {
  transform(value: string): string {
    return _.upperFirst(value);
  }
}

result-matching ""

    No results matching ""