Reputation: 1544
Hi I started learning Ionic 4. Currently my versions in packages.json are
"@angular/animations": "~7.0.0",
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/core": "^5.0.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^4.0.0"
And am trying to use button as
<button ion-button (click)="test()">Click Me! </button>
The problem is that the click event is not binding. What am I missing here?
Upvotes: 1
Views: 12328
Reputation: 3868
Ionic 4 doesn't use the <button>
tag anymore, but instead uses <ion-button>
.
<!-- Default -->
<ion-button>Default</ion-button>
Have a look here: https://beta.ionicframework.com/docs/api/button
Upvotes: 4