image.png

파이프는 PipeTransform 인터페이스를 구현하는 @Injectable() 데코레이터를 가진 클래스

특징

@Injectable() 데코레이터

PipeTransform 인터페이스

transform() 메서드

언제 사용할까?

유효성 검사(Validation)

변환(Transformation)