Angular2: what expressions can we interpolate in template

前端 未结 2 1251
囚心锁ツ
囚心锁ツ 2021-01-19 06:24

I read that we can interpolate Javascript expressions. What is the list of valid Javascript expressions that we can interpolate? So far for interpolation I have a displayed

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-19 07:19

    You can use the Angular 2 default pipes for evaluating the expression inside an interpolation. Please refer the below link https://www.npmjs.com/package/angular2-pipes#sum

提交回复
热议问题