Created
January 10, 2020 07:24
-
-
Save lpstandard/5c00253a6d2ceb8ffd62b564eb9b6ddb to your computer and use it in GitHub Desktop.
The basic "v-model" usage
This file contains 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
<!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