InterviewSolution
Saved Bookmarks
| 1. |
What is Pipe transform Interface in Angular? |
|
Answer» An interface used by pipes to accomplish a transformation. Angular calls the transform function with the value of a binding as the first argument and any arguments as the second parameter in list form. This interface is used to implement custom pipes. Example: import { Pipe, PipeTransform } from '@angular/core';@Pipe({ name: 'tranformpipe' }) export class TranformpipePipe implements PipeTransform { transform(value: unknown, ...args: unknown[]): unknown { return null; } } |
|