Basic level interview question — What is pipe and also name some built in pipes in angular?
May 24, 2023
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 :
- date
- lowerCase
- decimal
- percent
Code example
item.amount = 0.259
<span>item.amount| percent</span>
output
26%