Basic level interview question — What is pipe and also name some built in pipes in angular?

Anil Kumar
May 24, 2023


Photo by T K on Unsplash

Pipe — in general a medium for transfer some thing from one place to other some time with change pressure current etc.

in Angular pipe is function takes input and give output used for transform data to another format like string to proper date currency etc.

Example :

  1. date
  2. lowerCase
  3. decimal
  4. percent

Code example

item.amount = 0.259

<span>item.amount| percent</span>