No ripple effect when click on button programatically

Hi,

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:

document.getElementById('myBtn').click();

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