Answers for "vue 3 toggle button"

3

toggle on-click button vue

<button @click="variable = !variable">
	Toggle Value
</button>

<script>
export default {
  data () {
     return {
       variable: false
     }
  }
}
</script>
Posted by: Guest on December-07-2020

Browse Popular Code Answers by Language