O'Reilly logo

Pro Angular, Second Edition by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Adam Freeman 2017

Adam Freeman, Pro Angular, 10.1007/978-1-4842-2307-9_18

18. Using and Creating Pipes

Adam Freeman

(1)MILTON KEYNES MK6 3PA, 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, ensuing that data is presented consistently.

How are they used? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required