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
I got issue when using both from ionicons.com and /docs/ionicons/.
For alert icon, no need to use ionicons.com, use warning icon directly from https://ionicframework.com/docs/ionicons/
<ion-icon name="warning"></ion-icon>
And remove including of ionicons.min.css on index.html (important)
So you will never have issues of wrong icon.


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:
https://unpkg.com/[email protected]/dist/ionicons.js<ion-icon name="warning"></ion-icon>And all is happiness. Definitely better than the old fonts+classes way.