-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (35 loc) · 1.52 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body ng-app="myApp" ng-controller="myCtrl as model">
<div class="container">
<div class="row">
<br />
<br />
<div class="input-group col-md-9">
<span class="input-group-addon" id="basic-addon1"><i class="glyphicon glyphicon-pencil"></i></span>
<input type="text" class="form-control" placeholder="Enter your task here....." ng-model="post" aria-describedby="basic-addon1">
</div>
<p>You entered: {{post}}</p>
<br />
<div class="col-md-4">
<button type="submit" class="btn btn-primary" ng-click="model.save()" >Submit</button>
</div>
</div>
<br />
<br />
<div class="row">
<my-directive dta="model.todos" ng-model="model.selected"></my-directive>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular-route.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>