SHARE
TWEET

Untitled

a guest Oct 18th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.     <div>
  3.         <input type="text" v-model="form1">
  4.         <input type="text" v-model="form2">
  5.         <button :disabled="isDisabled"> Button</button>
  6.     </div>
  7. </template>
  8.  
  9. <script>
  10. export default {
  11.     data() {
  12.         return{
  13.             form1: '',
  14.             form2: ''
  15.         }
  16.     },
  17.     computed: {
  18.         isDisabled(){
  19.             return form1 === '' || form2 === ''
  20.         }
  21.     },
  22. }
  23. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top