scrimba
Preview
Computed Setter
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Computed Setter
AboutCommentsNotes
Computed Setter
Expand for more info
index.html
run
preview
console
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>

<!-- Let's add Vue here -->
<div id="app">

<input name="field" v-model="field" />

<p>The current values is: {{ field }}</p>

</div>

<script>
var app = new Vue({
el: '#app',
data: {
field: '',
},
computed: {

}
});
</script>
</body>
</html>
Console
"Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools"
,
"You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html"
,
/index.html
-4:53