Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Angular chaining pipes

Chaining pipes is Angularnothing but arranging more than one pipe in sequence so that the input value gets transformed in stages through the various pipes chained together. The successive pipes in the chain should be separated by a pipe symbol.

{{ | | | . . . | }}

While chaining pipes we can also specify parameters for any of the pipes in the chain, in which case the pipe and its parameter are separated by a colon (:) symbol. Parameters are optional, also we can selectively specify parameters for certain pipes in the chain and ignore for other pipes.

 {{ | : | | . . . | }}

In the following example we will use a date pipe, followed by an uppercase pipe. The input value will be a date object which holds the current date.



This post first appeared on C# Guide, please read the originial post: here

Share the post

Angular chaining pipes

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×