forked from BosNaufal/vuex-saga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser.html
40 lines (34 loc) · 789 Bytes
/
browser.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue 2 Autocomplete (Browser Version)</title>
<link rel="stylesheet" href="./dist/style/vue2-autocomplete.css">
</head>
<body>
<div id="app">
<autocomplete
url="http://localhost/proyek/goodmovie/api/api/v1/search"
:custom-params="{ token: 'dev' }"
anchor="title"
label="writer"
:on-select="getData" >
</autocomplete>
</div>
<script src="https://vuejs.org/js/vue.js"></script>
<script src="./dist/vue2-autocomplete.js"></script>
<script>
new Vue({
el: "#app",
components: {
autocomplete: Vue2Autocomplete
},
methods: {
getData(data) {
console.log(data);
}
}
})
</script>
</body>
</html>