I have a button and a function in my ionic 4 Code. Ideally on the click of the button, the function should fire up but that's not happening.
MY HTML
<ion-content padding>
<div class="contentFlow" id="profile-content">
<h1>Profile</h1>
<ion-button (click)="clicked()" expand="block" color="light">
Logout
</ion-button>
</div>
</ion-content>
MY TS:
clicked() {
alert('hello');
}
Note: I need to keep the div in my code.
What should I do?