Answers for "add to cart button plus and minus in ionic"

0

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--;
}
Posted by: Guest on October-28-2020

Browse Popular Code Answers by Language