In This particular example we will use Vue to Bind the text area with the paragraph for a binding. You can read the tutorial here. http://thewebjuice.com/learn-fast-handling-user-inputs-form-bindings-using-vue
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css">
<h2>
Binding Input Box
</h2>
<div id="app">
<label class="badge badge-default">This is binded text -->{{text}}</label>
<br>
<input v-model="text">
</div>
<br>
<!-- App 2 -->
<div id="app1">
<label class="badge badge-default">This is binded text with initialized value -->{{text}}</label>
<br>
<input v-model="text">
</div>
<hr>
<h2>
Binding Text Area
</h2>
<div id="app2">
<p>{{text}}</p>
<br>
<textarea v-model="text"></textarea>
</div>
<hr>
<a href="http://thewebjuice.com/learn-fast-handling-user-inputs-form-bindings-using-vue">Visit The Web Juice for a Full Tutorial</a>
JavaScript
// Instantiating a new Vue instance
var app = new Vue({
el: '#app',
data: {
text: ''
}
});
// Instantiating a new Vue instance which has preinitialized text
var app1 = new Vue({
el: '#app1',
data: {
text: 'Hello'
}
});
var app2 = new Vue({
el: '#app2',
data: {
text: ''
}
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.