I'm using Ionic 3 and one of my function in my Component is not fired on the view. I don't understand because my function myGoBack() works when I run it by clicking on other element, but not on one I wanna use (on the ion-icon or ion-buttons). For example I made a test button, and it's fired on it !
Please help me
html :
<ion-toolbar icon-start>
<ion-buttons start icon-only (click)="myGoBack()">
<ion-icon (click)="myGoBack()" name='arrow-back' icon-start></ion-icon>
</ion-buttons>
<button (click)="myGoBack()">Test</button>
<ion-searchbar placeholder='Rechercher' (ionInput)="getItems($event,typeAffiche)"></ion-searchbar>
</ion-toolbar>
z-index. If that doesn't work, try wrapping the icon in abuttonlike suggested on this post. - Joseph Webber