Here is the code from my file.html
:
<button ion-button item-right>
<ion-icon name="md-add-circle" (click)="save();"></ion-icon>
</button>
The content of file.ts
is:
editmode = false;
I am trying to achieve the following: If editmode
is set to false, then execute the save()
function. However, if it is true, I want to call the editedu(elem,index)
function when the button on the HTML page is clicked.