Ion-button (click) not work

Hello,

I try different solutions, ion-button, button ion-button, button href, … but nothing work.

In Page html (ion-content)

  <ion-button (click)="openExternalPage()">openExternal</ion-button>
  <ion-button (click)="logEvent($event)">Log</ion-button>
  <ion-button (click)="openExternalPage('google.com')"><ion-label>openExternal Label</ion-label></ion-button>

And in class HomePage

  openExternalPage(url:string): void {
    console.log('go => ' + url);
  }

  logEvent(event) {
    alert('test');
    console.log(event);
  }

Thank you for help

did you ever figure this out?

Check your function definition and calls. Did you added parameters on function call of openExternalPage(url) function?