Changing the data itself can have a side effect. Therefore, if you want to change the format displayed on the screen, use a pipe.
$ng new <name> -t -s -S $ng cd <name> $ng generate <name> [option]
Pipe
Mean
date : ' '
Date format conversion
json
JSON format conversion
uppercase
Uppercase conversion
lowercase
Lowercase conversion
currency : 'USD' : 'symbol' : '1.1-2' //=> $5.99
Currency format conversion
percent : ' '
Percent format conversion
decimal
Decimal format conversion
slice : '2' //=> cut second character and return
String extraction
async
Asynchronism object extraction
// Pipe option
// Pipe chaining
Last updated 6 years ago
{{ value | pipeName }}
{{ value | pipeName : ‘display option’}}
{{ value | pipeName1 | pipeName2 }}