We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b15367 commit b0b0aa8Copy full SHA for b0b0aa8
index.html
@@ -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