Skip to content

Instantly share code, notes, and snippets.

@freakflames29
Created March 27, 2021 16:04
Show Gist options
  • Select an option

  • Save freakflames29/0d84147e4cb8a1bfe99dcbcf299957f6 to your computer and use it in GitHub Desktop.

Select an option

Save freakflames29/0d84147e4cb8a1bfe99dcbcf299957f6 to your computer and use it in GitHub Desktop.
two way data binding in vue js
<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