-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
59 lines (38 loc) · 1.31 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html data-ng-app="app">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="demo/css/main.css"/>
</head>
<body>
<div data-ng-controller="MainController">
<h1>Example 1</h1>
<h2>REACT</h2>
<div data-component="ex1" data-ng-model="text" data-ctrl="InjectedController"></div>
<h2>ANGULAR</h2>
<input type="text" data-ng-model="text" data-ng-change="handleChange()" />
<p>{{text}}</p>
</div>
<hr>
<div data-ng-controller="NumberController">
<h1>Example 2</h1>
<p>Uncomment one of the blocks of code</p>
<button ng-click="numGen()">Refresh Data</button>
<hr>
<!-- REACT -->
<!--<div data-component="ex2" data-ng-model="numbers"></div>-->
<!-- ANGULAR -->
<!--<table>-->
<!--<tr ng-repeat="number in numbers">-->
<!--<td>{{number}}</td>-->
<!--</tr>-->
<!--</table>-->
</div>
<script type="text/javascript" src="lib/angular/angular.min.js"></script>
<script type="text/javascript" src="lib/react/react.js"></script>
<script type="text/javascript" src="demo/js/app.js"></script>
<script type="text/javascript" src="src/nrg.js"></script>
<script type="text/javascript" src="demo/js/example1.js"></script>
<script type="text/javascript" src="demo/js/example2.js"></script>
</body>
</html>