摘要: 管道的作用就是将原始值进行转化处理,转换为所需要的值; 一、内置管道 1 <h1>大小写转换</h1> 2 {{'HeLLO worLD' | uppercase}} 3 <!-- 转换为大写 --> 4 <br /> 5 {{'HeLLO worLD' | lowercase}} 6 <!-- 转 阅读全文
posted @ 2021-12-06 17:33 GISer杰 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Style 一、通过 ngStyle 1 <p [ngStyle]="{'color':'red'}">ngStyle演示</p> 2 3 <p [ngStyle]="{'color':tempColor}">ngStyle演示</p> 4 // tempColor定义在ts文件中,数据类型为字符串 阅读全文
posted @ 2021-12-06 09:22 GISer杰 阅读(80) 评论(0) 推荐(0) 编辑