screen_rotation
Copied to Clipboard
<html> <head> <script type="importmap"> { "imports": { "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js" } } </script> </head> <body> <div id="app"> <h3>Vue Js v-bind:disabled Attribute</h3> <p>Vue Js Enable/Disable buttons on click</p> <button v-bind:disabled="isEnable">Signup</button><br><br> <button @click="toggleEnable">click me</button> </div> <script type="module"> import { createApp } from "vue"; createApp({ data() { return { isEnable: true } }, methods: { toggleEnable() { this.isEnable = ! this.isEnable } } }).mount("#app"); </script> </body> </html>