File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE HTML>
2
-
3
2
< html >
4
-
5
3
< 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 >
8
6
</ head >
9
-
10
7
< 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
+
13
10
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
11
24
- </ script >
25
12
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 >
26
17
</ html >
You can’t perform that action at this time.
0 commit comments