Skip to content

Instantly share code, notes, and snippets.

@bachhm-dev
Created August 30, 2020 14:29
Show Gist options
  • Save bachhm-dev/3d0c3f5a0b98881cb2eaf87c7fe4365e to your computer and use it in GitHub Desktop.
Save bachhm-dev/3d0c3f5a0b98881cb2eaf87c7fe4365e to your computer and use it in GitHub Desktop.
<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