16 lines
352 B
JavaScript
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;
|
|
}
|
|
} |