1 import { Pipe, PipeTransform } from '@angular/core';
3 @Pipe({ name: 'ngxPlural' })
4 export class PluralPipe implements PipeTransform {
6 transform(input: number, label: string, pluralLabel: string = ''): string {
11 ? `${input} ${pluralLabel}`
12 : `${input} ${label}s`;