pipes

管道主要用于格式化数据显示,常用场景有货币、金额、日期、大小写转换

使用方法

value | pipename : param1 : param2 : ... 

value | pipename1 | pipename2

常用内置管道:

  • DatePipe
  • UpperCasePipe
  • LowerCasePipe
  • CurrencyPipe
  • DecimalPipe
  • PercentPipe

Angular - Transforming Data Using Pipes

 

 

 
 
posted @ 2023-06-14 17:44  今天起个早  阅读(157)  评论(0编辑  收藏  举报