new Yox({
el: '#app',
template: '#template',
data: {
firstName: 'Michael',
lastName: 'Jordon'
},
computed: {
fullName: function () {
return this.get('firstName') + ' ' + this.get('lastName')
}
}
})
<div id="app"></div>
<script id="template" type="text/plain">
<div>
first name: <input type="text" model="firstName">
<br>
last name: <input type="text" model="lastName">
<br>
full name: {{fullName}}
</div>
</script>