如何使用angular 4项目向.net Core 2 Spa添加超赞的字体 [英] How to add font awesome to a .net core 2 spa with angular 4 project
本文介绍了如何使用angular 4项目向.net Core 2 Spa添加超赞的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现此,但是我没有角度cli文件,因此我尝试使用npm
安装,然后在wwwroot/css/style.css
文件中使用import
语句添加它,但这也不起作用.>
我的项目是一个带有Asp.Net Core 2.0 Web API的Angular 4应用程序,因此建议的教程无法解决该问题.
解决方案
this but I don't have an angular cli file so I tried to install with npm
and then add it with import
statement in my wwwroot/css/style.css
file but that didn't work either.
EDIT: My project is an Angular 4 App With Asp.Net Core 2.0 Web API so the suggested tutorial was unable to resolve the issue.
解决方案
How to add font awesome to ASP.NET Core Angular 2 application in Visual Studio 2017 with SpaTemplates I reread the article and found that I missed something. I resolved the issue.
这篇关于如何使用angular 4项目向.net Core 2 Spa添加超赞的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文