Pipes

Pipes modify binding behavior by transforming values while they move from class properties to templates. They are placed after the binding expression, preceded by the | character. Several pipes may be stacked one after the other in the same binding, each separated from the others by a | symbol:

'<binding expression>|pipe1|pipe2...'

Pipes may have arguments that are placed after the pipe name and separated by colons:

'<binding expression>|pipe1:arg1:arg2|pipe2...'

Since arguments are identified by their positions, when an argument that is specified is preceded by other absent arguments, : separators must be added as placeholders for the missing arguments:

'<binding expression>|pipe1::arg2|pipe2...'

In the Modules, components and data ...

Get Hands-On TypeScript for C# and .NET Core Developers 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.