Pipe
noun
say it: “PYPE” /paɪp/
An Angular template formatter written after |, such as currency or date, that changes how a value is shown.
What is Pipe?
A pipe formats a value in the template without changing the original data, using the | symbol. Dates, prices and upper-casing are common uses.
<p>{{ order.total | currency }}</p>
<p>{{ order.placedAt | date: 'mediumDate' }}</p>
In a sentence
- “The currency pipe turns 18 into $18.00.”
Level: Apprentice · More Angular terms at this level
Updated