Commit 9f0bd2fa authored by Adam Procter's avatar Adam Procter

working static data

parent c86b985d
......@@ -16,8 +16,21 @@
<body>
<!-- Add your site or application content here -->
<div id="app">
{{ msg }}
<div id="instance">
<instance :name="name" :allobjects="allobjects" inline-template>
<div id="knowledgeobject">
<knowledgeobject v-for="knowledgeobject in allobjects" :key="knowledgeobject.id" :knowledgeobject="knowledgeobject" inline-template>
<p>Hey {{knowledgeobject.id}}</p>
</knowledgeobject>
</div>
</instance>
</div>
</div>
<script src='js/vue.js'></script>
......
Vue.component(
'instance', {
props:{
name:String,
allobjects:Array
},
template: '#instance'
}
)
new Vue({
el: '#app',
data () {
return {
msg: 'yo vue!'
}
}
Vue.component(
'knowledgeobject', {
props:{
knowledgeobject: Object
},
template:'#knowledgeobject'
}
)
})
\ No newline at end of file
new Vue({
el: '#app',
data () {
return {
name:'versionone',
allobjects:
[
{
id:1,
type:'',
owner:'',
connections:[],
metadata:{}
},
{
id:2,
type:'',
owner:'',
connections:[],
metadata:{}
}
],
}
}
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment