File

src/sample.pipe.ts

Description

Transforms any input value

Index

Methods

Constructor

Object()

Methods

transform
transform(value: any, args: any[])
Parameters :
Name Type Optional Default value
value any no
args any[] no null
Returns : string
import { Injectable, PipeTransform, Pipe } from '@angular/core';

/**
 * Transforms any input value
 */
@Pipe({
  name: 'samplePipe'
})
@Injectable()
export class SamplePipe implements PipeTransform {
  transform(value: any, args: any[] = null): string {
    return value;
  }
}

results matching ""

    No results matching ""