Custom pipes
Learn Custom pipes (Module 7 · Pipes, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Creating custom pipes • When no built-in pipe fits, write your own: a small class with the @Pipe decorator and a transform method. Example: show "5 minutes ago" or shorten text with "...". Create one with ng generate pipe shared/truncate .