Angular #42 - Pipes in Angular | Date Pipe | Upper Case Pipe | Lower Case Pipe | Title Case Pipe

Опубликовано: 20 Октябрь 2024
на канале: Let's Build With Code
62
3

Click to watch Angular Playlist:    • Angular  

Transforming Data Using Pipes

Use pipes to transform strings, currency amounts, dates, and other data for display. Pipes are simple functions to use in template expressions to accept an input value and return a transformed value. Pipes are useful because you can use them throughout your application, while only declaring each pipe once.

The following are commonly used built-in pipes for data formatting:

DatePipe: Formats a date value according to locale rules.
UpperCasePipe: Transforms text to all upper case.
LowerCasePipe : Transforms text to in lower case
TitleCasePipe : Transforms text to title case
LowerCasePipe: Transforms text to all lower case.
CurrencyPipe: Transforms a number to a currency string, formatted according to locale rules.
DecimalPipe: Transforms a number into a string with a decimal point, formatted according to locale rules.
PercentPipe: Transforms a number to a percentage string, formatted according to locale rules.