作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在尝试将 ionic 图标添加到我的 Angular 4 应用程序中。以下是采取的步骤:
我错过了什么吗?
最佳答案
在 angular 6.3.x 和 npm 6.1.x 中获得 ionicons 的方法......
npm install ionicons@latest --save
"ionicons": "^4.2.4"
的内容将自动出现在您的项目依赖项中 package.json
"node_modules/ionicons/dist/scss/ionicons.scss"
在 "styles": []
下你的angular.json
里面的部分<span class="ion ion-md-attach"></span>
在你的app.component.html
或 index.html
或您选择的任何标记文件关于angular - 如何在 Angular 组件中使用 ionicons?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45609920/
我是一名优秀的程序员,十分优秀!