<button class="minus-btn" (click)="minus(product)" type="button" name="btn" onclick="return false;">
<img src="../assets/images/minus.svg" alt="minus" /></button>
<input class="num" name="int" [value]="product.nullValue" formControlName="int" ng-minlength="0" type="number" required />
<button class="plus-btn" (click)="plus($event, product)" name="btn" type="button" onclick="return false;">
<img src="../assets/images/plus.svg" alt="plus" /></button>
plus($event, product:any) {
$event.preventDefault();
product.nullValue++;
this.quantity = product.nullValue;
console.log('click submitted');
return false;
return this.quantity;
}
minus(product:any){
product.nullValue--;
this.quantity = product.nullValue;
console.log('click submitted');
return false;
return this.quantity;
}