Hello, If you add any such pipe in your application, it would be considered as Custom Pipe
On Sun, Sep 2, 2018 at 7:54 PM Sudhir Reddy <[email protected]> wrote: > Hi! > > Can I override transform method in pipefilter in angular? Probably, > something like this.. > > export class FilterPipe implements PipeTransform { > //I want use following method search operation > * transform(value: any, args?: any): any {* > > * if (!value) return null;* > * if (!args) return value;* > > * args = args.toLowerCase();* > > * return value.filter(function (item: any) {* > * return JSON.stringify(item).toLowerCase().includes(args);* > * });* > * }* > *//Second: Customise date format* > *transform(value: string, format: string) {* > * var datePipe = new DatePipe('en-US');* > * value = datePipe.transform(value, format);* > * return value;* > * }* > } > > Thanks in advance! > Sudhir > > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
