Created
March 27, 2021 16:04
-
-
Save freakflames29/0d84147e4cb8a1bfe99dcbcf299957f6 to your computer and use it in GitHub Desktop.
two way data binding in vue js
This file contains hidden or 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> | |
| <h2>Tasks</h2> | |
| <!-- <Check/> --> | |
| <h4>{{msg}}</h4> | |
| <input type="text" v-model="msg"> | |
| <!-- <p v-html="html"></p> --> | |
| <!-- <button v-bind:disabled='disbtn'>Thanos</button>111 --> | |
| </template> | |
| <script> | |
| import Check from './Check' | |
| export default { | |
| name:'So', | |
| components:{ | |
| Check | |
| }, | |
| data() | |
| { | |
| return( | |
| { | |
| name:'Sourav', | |
| html:' <h1> Your name</h1>', | |
| disbtn:false, | |
| msg:'This is data' | |
| } | |
| ) | |
| } | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment