My_Test_Repo/force-app/main/default/lwc/parentExp/parentExp.js

16 lines
352 B
JavaScript

import { LightningElement } from 'lwc';
export default class ParentExp extends LightningElement {
countvalue=0;
handleDecrement(){
this.countvalue--;
}
handleIncrement(){
this.countvalue++;
}
handleMultiply(event){
const multiplingNumber=event.detail;
this.countvalue*=multiplingNumber;
}
}