摘要: # 解决方案 使用`ngClass`和`ngStyle`可以进行样式的绑定。 ## ngStyle的使用 ngStyle 根据组件中的变量, isTextColorRed和fontSize的值来动态设置元素的颜色和字体大小 ```HTML This text has dynamic styles b 阅读全文
posted @ 2023-07-30 22:23 胸怀丶若谷 阅读(122) 评论(1) 推荐(0) 编辑
摘要: # 解决方案 在`tsconfig.json`的`compilerOptions`选项中添加如下内容`"skipLibCheck": true`。 如下图所示 ![image](https://img2023.cnblogs.com/blog/1795938/202307/1795938-20230 阅读全文
posted @ 2023-07-30 21:26 胸怀丶若谷 阅读(109) 评论(0) 推荐(0) 编辑