diff --git a/lessons/app.js b/lessons/app.js index 4a9f554..0c4c5dc 100644 --- a/lessons/app.js +++ b/lessons/app.js @@ -1,4 +1,4 @@ -Vue.component('ts-cmp', { +var component = { data() { return {status: 'Critical'}; }, @@ -8,9 +8,26 @@ Vue.component('ts-cmp', { this.status = 'Normal'; } } -}); +}; -var app = new Vue({ - el: '#app', +var component2 = { + template: 'butts', +}; + + + +var app1 = new Vue({ + el: '#app1', + components: { + 'ts-cmp': component + } + +}); + +var app2 = new Vue({ + el: '#app2', + components: { + 'ts-cmp': component2 + } }); diff --git a/lessons/index.html b/lessons/index.html index e1be8dc..7abb848 100644 --- a/lessons/index.html +++ b/lessons/index.html @@ -6,13 +6,16 @@
-