DEV Community

Bestdesign2hub
Bestdesign2hub

Posted on

What is Pipe in Angular and Transform Data Using Pipes?

Angular gives few useful filters called Pipes. These make them very easy to format or transform the data value even as per our requirements. A Pipe is used with a Pipe(|) character, it takes an input and returns a desired formatted output.

It takes strings, integers, arrays, and date as input split with | to be converted in the format as required and displays the identical within the browser. Pipes are chainable. As expressed data transformers, pipes are hardly minor. Pipe transforms template data directly.
Source: Pipe in Angular

Discussion (0)