1.

How do you create a custom pipe in Angular?

Answer»

In Angular 2, you can create CUSTOM PIPES. The simplest way is as follows.

import { Pipe, PipeTransform } from '@angular/core';
    @Pipe({name: 'Pipename'})
    EXPORT class Pipeclass implements PipeTransform {
    transform(PARAMETERS): returntype { }
}



Discussion

No Comment Found