Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Angular Custom Pipes and How it works
import { Pipe, PipeTransform } from '@angular/core';
name: 'myCustomPipe'
export class MyCustomPipe implements PipeTransform {
transform(value:number, param1?:any, param2?:any):number {
return (value * param1) / param2; // returns 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment