-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (117 loc) · 4.24 KB
/
index.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<title>Vue Js Bangla Tutorial</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="container" id="app" style="margin-top: 30px;">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header"><h1>Vue Js Bangla Tutorial</h1></div>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" v-bind:class="{active:isActive}" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<div class="card-body">
<div class="form-group">
<label>Enter Name</label>
<input type="text" class="form-control" v-model="name"><br>
{{ name }}
</div>
<div class="form-group">
<label>Select Country</label>
<select class="form-control" v-model="country">
<option value="" selected="">select one</option>
<option value="Bangladesh">Bangladesh</option>
<option value="India">India</option>
</select><br>
{{ country}}
</div>
<div class="form-group">
<div class="col-sm-2">Skill's</div>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="HTML" v-model="skill" id="HTML">
<label class="form-check-label" for="gridCheck1">
HTML
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="CSS" v-model="skill" id="css">
<label class="form-check-label" for="gridCheck1">
CSS
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="VUE" v-model="skill" id="vue">
<label class="form-check-label" for="gridCheck1">
Vue JS
</label><br>
{{ skill }}
</div>
</div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="gridRadios" id="Male" value="male" v-model="gender">
<label class="form-check-label" for="Male">
Male
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="gridRadios" id="Female" value="female" v-model="gender">
<label class="form-check-label" for="Female">
Female
</label><br>
{{ gender }}
</div>
</div>
<div class="text-success" v-bind:class="{'text-danger':hasError}">This is class binding example</div>
<div v-bind:style="styleObj">This is inline style binding example</div>
<div class="card-footer text-muted">
<a v-bind:href="facebook.url" :title="facebook.title">{{ facebook.name }} </a>
<a :href="youtube.url" :title="youtube.title">{{ youtube.name }} </a>
</div>
</div>
</div>
</div>
</div>
<script src="vue.js"></script>
<script type="text/javascript">
var app = new Vue({
el: "#app",
data: {
styleObj:{
color:'green',
background:'black',
fontSize:'40px',
},
isActive:true,
hasError:true,
message: 'Hello Vue!',
name:'',
country:'',
skill:[],
gender:'',
facebook:{
name:'Facebook', title:'Tech Bangla School Facebook', url:'http://facebook.com'
},
youtube:{
name:'Youtube', title:'Tech Bangla School Youtube', url:'http://youtube.com/TechBanglaSchool'
}
}
});
</script>
</body>
</html>