import { Pipe, PipeTransform } from '@angular/core';
      
      @Pipe({
        name: 'selector-name'
      })
      export class NamePipe implements PipeTransform {
        transform(value: any, ...args: any[]): any {
        }
      }
      Typescript language logo
      your recipe card header background

      Angular Pipe

      Angular TypeScript Recipes

      The @Pipe annotation defines a pipe which will be used to transform the input values. The PipeTransform class defines the generic interface for the pipe. The transform() method will be used to transform the input values. The ...args parameter is an array of input values that will be passed to the transform method.

      Library: angular

      Shortcut: angular.pipe

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.