add (+/-) button number incrementers ionic 4 code example
Example: add to cart button plus and minus in ionic
HTML----------------------------------
<ion-icon name="remove-circle" (click)="decrement()">
{{currentNumber}}
<ion-icon name="add-circle" (click)="increment()">
TS--------------------------------
private currentNumber = 0;
constructor () { }
private increment () {
this.currentNumber++;
}
private decrement () {
this.currentNumber--;
}