forked from owthub/vuejs2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo-16.js
48 lines (40 loc) · 801 Bytes
/
video-16.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var data = {
name:"Online web tutor",
author:"Sanjay"
};
Vue.component("owt",{
template:"<div><p>This is called online web tutor markup Channel name: {{ name }}, Author: {{ author }}</p><p>Method Running: {{ method1() }}</p><p>Computed: {{ computed1 }} <button @click='fireMe'>Click me</button></p></div>",
data: function(){
return {
name:"Online web tutor",
author:"Sanjay"
}
},
methods:{
method1: function(){
return "This is vue component";
},
fireMe:function(){
this.author = "Sanju";
}
},
computed:{
computed1: function(){
return "Simple message";
}
}
});
var myapp1 = new Vue({
el:"#my-app-1",
data:{
},
methods:{
}
});
var myapp1 = new Vue({
el:"#my-app-2",
data:{
},
methods:{
}
});