Skip to content
to-count.ts 395 B
Newer Older
wangqinghua's avatar
wangqinghua committed
import { Pipe, PipeTransform } from '@angular/core';

/**
 * Generated class for the ToCountPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
@Pipe({
  name: 'toCount',
})
export class ToCountPipe implements PipeTransform {
  /**
   * Takes a value and makes it lowercase.
   */
  transform(value: string, ...args) {
    return value.toLowerCase();
  }
}