Skip to content

Instantly share code, notes, and snippets.

@lpstandard
Created January 10, 2020 07:24
Show Gist options
  • Save lpstandard/5c00253a6d2ceb8ffd62b564eb9b6ddb to your computer and use it in GitHub Desktop.
Save lpstandard/5c00253a6d2ceb8ffd62b564eb9b6ddb to your computer and use it in GitHub Desktop.
The basic "v-model" usage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<title>The basic "v-model" usage</title>
</head>
<body>
<div id='app'>
<input type="text" v-model='message'> {{ message }}
</div>
<script>
var App = new Vue({
el: '#app',
data: {
message: ''
}
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment