Skip to content

Commit 960d7f1

Browse files
committed
Update index.html
1 parent b0b0aa8 commit 960d7f1

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

index.html

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
<!DOCTYPE HTML>
2-
32
<html>
4-
53
<head>
6-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7-
<title>KO</title>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5+
<title>KO</title>
86
</head>
9-
107
<body>
11-
The name is <span data-bind="text: personName"></span>
12-
</body>
8+
Today's message is: <span data-bind="text: myMessage"></span>
9+
1310

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);
2311

24-
</script>
2512

13+
<!--js assets!-->
14+
<script type='text/javascript' src='js/knockout-3.1.0.js'></script>
15+
<script type='text/javascript' src='js/main.js'></script>
16+
</body>
2617
</html>

0 commit comments

Comments
 (0)