-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (41 loc) · 1.15 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
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Ordiez</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
<script src="https://unpkg.com/vue"></script>
<script src="main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.3.4"></script>
</head>
<body>
<div id="myVueApp1">
<ol>
<li v-for="order_id in order_ids">
{{ order_id.order_id }}
<feed-button :order="order_id"></feed-button>
</li>
</ol>
</div>
<script>
var vm1 = new Vue({
el: '#myVueApp1',
data: {
order_ids: [{
order_id: 'GO123'
}, ]
},
mounted() {
this.$http.get('https://ordiez.herokuapp.com/orders').then(response => {
this.order_ids = response.body;
}, response => {
console.log('error')
})
}
})
</script>
</body>
</html>