© Adam Freeman 2020
A. FreemanPro Angular 9https://doi.org/10.1007/978-1-4842-5998-6_18

18. Using and Creating Pipes

Adam Freeman1 
(1)
London, UK
 
Pipes are small fragments of code that transform data values so they can be displayed to the user in templates. Pipes allow transformation logic to be defined in self-contained classes so that it can be applied consistently throughout an application. Table 18-1 puts pipes in context.
Table 18-1.

Putting Pipes in Context

Question

Answer

What are they?

Pipes are classes that are used to prepare data for display to the user.

Why are they useful?

Pipes allow preparation logic to be defined in a single class that can be used throughout an application, ensuring that data is presented consistently.

How are they used?

Get Pro Angular 9: Build Powerful and Dynamic Web Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.