IONIC 2 ion-icons not working


#1

Hi Guys,

Am using ion-icons in buttons but its not working for me. Here, I mentioned my code.

<ion-item> 
   <button ion-button full color="primary" icon-left (click)="testMethod()">
      <ion-icon name="home"></ion-icon>
      Test Method
    </button>
</ion-item>

Thanks…


#2

Try adding the item-content attribute to your button.


#3

Make sure that your " www/assets/fonts" folder contain ionicons font files, if not please check your gulp config file


#4

Am importing ion-icons 2.0.1 now am using 3.0 ist working. Thanks…