-Angular Pipes takes a data as input and formats or transform the data tbefore displaying it in the view. We use them to change the appearance of the data before presenting it to the user. The most common use case of pipes is displaying the dates in the correct format as per the user’s locale.
In this lecture, i will show you how to use Angular Pipes. You will learn how to pass arguments to a pipe and how to chain multiple pipes. You are also going to learn about few of the angular built-in pipes like currency pipe, date pipe, percent pipe etc.
The syntax of the pipe is as follows:
Expression | pipeOperator[:pipeArguments]
- Expression: is the expression, which you want to transform
- | : is the Pipe Character
- pipeOperator : name of the Pipe
- pipeArguments: arguments to the Pipe
Let's understand pipes with some simple examples in this lecture.
DOWNLOAD SECTION SOURCE CODE HERE: https://drive.google.com/file/d/11f5j6cZxZP-Wh3b9zvkggabSVynoheZE/view?usp=sharing
11 Comments