How to use image as button in ionic

Ionic 2

Place your icons in www/assets/images then

<img src="assets/images/icon.png" style="width : 100% ; height : 100%" ng-click="nextpage()" >

try this.

 <img src="img/myImage.jpg" style="width : 100% ; height : 100%" ng-click="nextpage()" >

this shoud to the trick you can have the height and width as your wish.

Make sure you give the correct path to src field.


Ionic 4

<a routerLink="/user/details" routerDirection="forward">
   <img src='assets/images/icon.png'  />
</a>

You can try this way -

<button  (click)="click()" block>
     <img src="assets/img/scan_btn.png">
</button>