-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (50 loc) · 1.57 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 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">
<meta name="description" content="">
<meta name="author" content="">
<title>Angular 1.x with React</title>
</head>
<body>
<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 style="padding: 10px;" 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>
<react-directive todos=todos mark-complete="markItemCompleted(text)"></react-directive>
</div>
</div>
<script src="dist/bundle.min.js"></script>
</body>
</html>