Skip to content

Commit b0b0aa8

Browse files
committed
Create index.html
1 parent 8b15367 commit b0b0aa8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE HTML>
2+
3+
<html>
4+
5+
<head>
6+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7+
<title>KO</title>
8+
</head>
9+
10+
<body>
11+
The name is <span data-bind="text: personName"></span>
12+
</body>
13+
14+
<script type='text/javascript' src='js/knockout-3.1.0.js'></script>
15+
<script>
16+
//View Model
17+
var myViewModel = {
18+
personName: 'Van',
19+
personAge: 22
20+
};
21+
//load Model
22+
ko.applyBindings(myViewModel);
23+
24+
</script>
25+
26+
</html>

0 commit comments

Comments
 (0)