字体很棒的类映射到角度导入定义
https://fontawesome.com/icons/
在搜索图标时,它会给您提供类别的课程HTML,但角需要使用ICONDEFINITION。
例如:
< i class =“ fa-solid fa-star”></i>
将是angular:
< fa-icon [icon] =“ ['fas','star']”></fa-icon>
我如何找出网站上发现的图标的iCondefinition?
我找到了项目中的定义列表,但它并没有真正帮助将其映射到网站上的图标。
https://fontawesome.com/icons/
When searching for an icon it gives you the class to enter into the HTML, but angular requires to use the icondefinitions.
for example:
<i class="fa-solid fa-star"></i>
Would be the following with angular:
<fa-icon [icon]="['fas','star']"></fa-icon>
How do I figure out the icondefinition for the icons I find in the website?
I have found the list of definitions in the project, but it doesn't really help mapping it to the icon on the site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够直接使用“ FA-Solid FA-Diamond”课程使其上班。
我从数据阵列中汲取了这个问题,并通过这样的变量将其拉入:
这起作用了,因为我将其添加到index.html
I was able to get it to work using the class directly "fa-solid fa-diamond".
I was pulling this from an data array and pulled it in via a variable like this:
This worked because i added this to the index.html