No ripple effect when click on button programatically


I have an ion-button on my view. I want to click this button programmatically.

<ion-button size="small" id="myBtn" (click)='sayHi()'>Say Hi</ion-button>

If I do:


it works, but there is no ripple visual effect. Is it possible to click a button with having this effect?