Created
August 30, 2020 14:29
-
-
Save bachhm-dev/3d0c3f5a0b98881cb2eaf87c7fe4365e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<div>Amount: {{ amount }}</div> | |
<button @click="increaseAmount()">Increase Capacity</button> | |
</div> | |
</template> | |
<script> | |
export default { | |
data(){ | |
return { | |
amount: 3, | |
} | |
}, | |
methods: { | |
increaseAmount() { | |
this.amount+=1 | |
} | |
} | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment