Commit 38c38ad3 authored by Mathew Parker's avatar Mathew Parker

Formatting

parent 9f0bd2fa
......@@ -18,20 +18,14 @@
<div id="app">
<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 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>
<script src='js/svg.js'></script>
......
Vue.component(
'instance', {
props:{
name:String,
allobjects:Array
},
template: '#instance'
}
props: {
name: String,
allobjects: Array
},
template: '#instance'
}
)
Vue.component(
'knowledgeobject', {
props:{
props: {
knowledgeobject: Object
},
template:'#knowledgeobject'
}
},
template:'#knowledgeobject'
}
)
new Vue({
......@@ -23,8 +23,7 @@ new Vue({
data () {
return {
name:'versionone',
allobjects:
[
allobjects: [
{
id:1,
type:'',
......@@ -42,4 +41,4 @@ new Vue({
],
}
}
})
\ 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