forked from RubyLouvre/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index07with.html
33 lines (30 loc) · 837 Bytes
/
index07with.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
<!DOCTYPE html>
<html>
<head>
<title>ms-with</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="avalon.js"></script>
<script >
avalon.define("xxx", function(vm) {
vm.checked = true
vm.$watch("checked", function(a) {
avalon.log(a)
})
vm.obj = {
a: 1,
b: 2,
c: 3
}
})
</script>
</head>
<body ms-controller="xxx">
<h3 style="text-align: center">ms-with</h3>
<div ms-with="obj">
<p>{{$key}} -- {{$val}}</p>
</div>
<form>
<input ms-duplex-radio="checked" type="checkbox"/>
</form>
</body>
</html>