Angular Complete Series | Pipe | Part 21 | Angular11+

Опубликовано: 03 Февраль 2025
на канале: Code with Zubair Khan
54
0

Pipes in angular are used to format data before showing them to the user. Using pipes decorator it becomes pretty simple to encapsulate reusable code. Once an angular pipe is created it can be used UI data anywhere.

Angular provides a couple of built-in pipes already which are as follows-
1. Lowercasepipe
2. Uppercasepipe
3. Datepipe
3. Currencypipe
4. Jsonpipe
5. Percentpipe
6. Decimalpipe
7. Slicepipe

Using these pipes is really easy in angular just use pipe symbol (|) and add pipe name after it. Also to pass the arguments to pipe we can use colon (:) and add arguments.

Also in angular, we can use multiple pipes in sequence. separated by the pipe symbol.

#angular #angular11 #pipes
Follow us on Twitter:
  / polestutorial  

Follow us on Facebook:
  / tutorial-poles-103032308348727  

Official Web Link:
http://tutorialpoles.com