forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.html
38 lines (35 loc) · 1.23 KB
/
start.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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="avalon.js"></script>
</head>
<body>
<!-- <div ms-controller="box">
<div style=" background: #a9ea00;" ms-css-width="w" ms-css-height="h" ms-click="click"></div>
<p>{{ w }} x {{ h }}</p>
<p>W: <input type="text" ms-model="w" data-event="change"/></p>
<p>H: <input type="text" ms-model="h" /></p>
</div>-->
<script>
avalon.ready(function() {
avalon.define("test", function(vm) {
vm.url = "template1"
vm.name = "司徒正美"
vm.password = '12345678'
vm.array = [1,2,3,4,5,6,7]
})
avalon.scan()
})
</script>
<div ms-controller="test">
<select ms-model="url">
<option>template1</option>
<option>template2</option>
<option>template3</option>
</select>
<div ms-include-src="{{url}}.html"></div>
</div>
</body>
</html>