Skip to content

Instantly share code, notes, and snippets.

@atimermann
Last active January 23, 2018 02:00
Show Gist options
  • Save atimermann/023a1023c2cd6d1ad3e2f7ebc5eb5dea to your computer and use it in GitHub Desktop.
Save atimermann/023a1023c2cd6d1ad3e2f7ebc5eb5dea to your computer and use it in GitHub Desktop.
<template>
<div id="app">
<!--<img src="./assets/logo.png">-->
<h1></h1>
<h2>Smartify Crud Demo 01</h2>
<div class="container">
<smartify-crud :options="options" :schema="schema" :omodel="model"></smartify-crud>
</div>
<hr>
App.vue: {{ model }}
</div>
</template>
<script>
let model = [
{
id: '0584e8d2',
name: 'André',
age: 0,
},
{
id: 'f4769183',
name: 'Fernando',
age: 0,
},
{
id: 'e171c9fb',
name: 'Guilherme',
age: 0
}
]
export default {
name: 'demo01',
data() {
return {
options: {},
schema: {},
model
}
}
}
setInterval(() => {
model[0].age = model[0].age + 1
}, 1000)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment