How to create a simple button that toggle between two versions of it alternately?
At the beginning it should look like this:
<button ion-button block (click)="startPing()">Start work</button>
and then after clicking it should switch to:
<button ion-button block (click)="stopPing()">Stop work</button>
and then again to first version and so on.