-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathindex.html
64 lines (55 loc) · 1.81 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
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<title>Angular 1.x with React</title>
</head>
<body>
<!--<script src="/node_modules/angular/angular.js"></script>-->
<style>
.done-true{
text-decoration: line-through;
}
.done-false{
text-decoration: "";
}
.angular-part{
background-color: lightskyblue
}
.react-part{
background-color: cornflowerblue
}
.list-item{
cursor: pointer
}
</style>
<div ng-app="app">
<div ng-controller="TodoCtrl">
<div class="angular-part">
<h1>Angular TO-DO</h1>
<span>{{remaining()}} of {{todos.length}} remaining</span>
<ul class="unstyled">
<li ng-repeat="todo in todos">
<span class="done-{{todo.done}}">{{todo.text}}</span>
</li>
</ul>
<form ng-submit="addTodo()">
<input type="text" ng-model="todoText" size="30"
placeholder="add new todo here">
<input class="btn-primary" type="submit" value="add">
</form>
<div> </div>
</div>
<div > <!--ng-if={{todos}}-->
<react-directive todos=todos mark-complete="markItemCompleted(text)"></react-directive>
</div>
</div>
</div>
<script src="dist/bundle.min.js"></script>
</body>
</html>