You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sampleJSON: {testArray: ['Just a Test String','in a Test Array',0,1,true,false],component: 'vuejsontreeview',descripton: 'A JSON Tree View built in Vue.js',tags: [{name: 'vue.js'},{name: 'JSON'}],steps: ['HTML Template','Root Component','View Component',{'Transformation Logic': ['Transform Objects','Transform Arrays','Transform Values']},'Animate','Allow Options','Blog about it...']},// eslint-disable-line max-len
12
-
sampleJSONString: 'Just a Test String',
13
-
sampleJSONArray: ['Just a Test String','in a Test Array','www.google.com',0,1,true,false],
14
-
};
15
-
},
16
-
methods: {
17
-
onChangeData: function(data){
18
-
this.sampleJSON=data;
19
-
},
20
-
},
21
-
watch: {
22
-
sampleJSON: function(){
23
-
console.log('updated sampleJSON');
24
-
},
25
-
},
4
+
newVue({// eslint-disable-line no-new
5
+
el: '#container',
6
+
components: {
7
+
TreeView
8
+
},
9
+
data(){
10
+
return{
11
+
sampleJSON: {testArray: ['Just a Test String','in a Test Array',0,1,true,false],component: 'vuejsontreeview',descripton: 'A JSON Tree View built in Vue.js',tags: [{name: 'vue.js'},{name: 'JSON'}],steps: ['HTML Template','Root Component','View Component',{'Transformation Logic': ['Transform Objects','Transform Arrays','Transform Values']},'Animate','Allow Options','Blog about it...']},// eslint-disable-line max-len
12
+
sampleJSONString: 'Just a Test String',
13
+
sampleJSONArray: ['Just a Test String','in a Test Array','www.google.com',0,1,true,false]
0 commit comments