css - Angular 中的两个主题。SCSS中的变量问题
问题描述
我尝试通过这个流程在 Angular 10 中实现两个主题。它仅适用于 css。我在我的项目中使用 SCSS。如何修改此示例以使用 scss?抱歉,我这里没有任何代码。您可以在链接中找到它的代码。感谢帮助!
解决方案
app.component.css
将文件更改为app.component.scss
并在 app.component.ts 中更改styleUrls
为app.component.scss
推荐阅读
- ios - 从 Cloud Functions for Firebase 向 iOS 应用返回值
- javascript - jQuery ajax, js
- mysql - 如何使用sql更精确地搜索用户?
- icalendar - 如何以编程方式创建 iCal (.ics) 文件?
- asp.net-core-2.0 - .netcore 2.1 应用程序上的 opentracing 和 jaeger?
- python - Scipy.cluster kmeans2
- python - Python3 - 每个线程在函数内使用 n + 1 值
- javascript - 在不刷新整个页面的情况下刷新PNG文件的方法
- python - 数据框上的 Pyspark UDF 列
- javascript - foreach 中的 Ajax 中的 setTimeout