-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexercise_2_practice.html
63 lines (58 loc) · 1.64 KB
/
exercise_2_practice.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style>
[v-cloak] {
display: none;
}
</style>
<link type="text/css" rel="stylesheet" href="https://unpkg.com/bootstrap/dist/css/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.css"/>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/babel-polyfill@latest/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.js"></script>
</head>
<body>
<div id="app" v-cloak>
<b-container>
<h2>The Estimator Of The Cost of Multiple Items</h2>
<b-card title="Item Costs" sub-title="Costs of Different Items">
<table class="table">
<thead>
<tr>
<th>item</th>
<th>cost</th>
</tr>
</thead>
</table>
<b-btn>add new item</b-btn>
<p>total:</p>
<p>costliest:</p>
</b-card>
</b-container>
</div>
<script>
let id = 1
function getId() {
id++
return id
}
new Vue({
el: '#app',
data: {
'items': [
{id: getId(), name: 'mango bite', cost: 12},
{id: getId(), name: 'tea', cost: 2},
]
},
methods: {
},
computed: {
}
})
</script>
</body>
</html>