File

src/app/shared/pipes/list.pipe.ts

Metadata

Name list

Methods

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

@Pipe({
  name: 'list'
})
export class ListPipe implements PipeTransform {
  transform(value: any): any {
    return value.join(', ');
  }
}

result-matching ""

    No results matching ""