Skip to content

Instantly share code, notes, and snippets.

@kraizt

kraizt/two way bind.html

Last active Feb 28, 2018
Embed
What would you like to do?
// html
<div id=”app”>
<h1>{{ message }}</h1>
<input v-model=”message”>
</div>
//js
<script>
new Vue({
el: #app’,
data: {
message: ‘Look ma, i’m dynamically changed!
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment