I am trying incorporate the icons from ionicons.com on my app. I did download of code from github and added to my app, however I have a problem. I define icon class as ion-alert and is show a ion-android-add-circle. That follow for other icons also. See the images:
Ionic - showing wrong icon
1.4k Views Asked by GeekSilva At
2
There are 2 best solutions below
0
On
If not using the Ionic framework, which includes it already, which is i think what vusan's answer is getting at, then Ionicons recommended usage is now:
- Load its JavaScript in your app or page,
https://unpkg.com/[email protected]/dist/ionicons.js - Use an ionic web component,
<ion-icon name="warning"></ion-icon>
And all is happiness. Definitely better than the old fonts+classes way.


I got issue when using both from
ionicons.comand/docs/ionicons/.For alert icon, no need to use
ionicons.com, use warning icon directly fromhttps://ionicframework.com/docs/ionicons/And remove including of
ionicons.min.csson index.html (important)So you will never have issues of wrong icon.