Harvest-Dev / ng-walkthrough

A walkthrough for Angular
MIT License
21 stars 8 forks source link

I want to call the close function from the .ts file of the page #31

Open LucasOta opened 5 years ago

LucasOta commented 5 years ago

I'm using Ionic 3 with lazy loading.

I need to call the close function from a button.

I've been doing this so far: var x = document.getElementsByClassName('wkt-close')[0] as HTMLElement; x.click();

This worked fine on android and browser, but not on iOS. .click() event doesn't work because iOS use touch event and I couldn't emulate that on Typescript.

Any idea? (Sorry for my poor english)