-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular-contenteditable.html
37 lines (33 loc) · 1.43 KB
/
angular-contenteditable.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js"></script>
<script src="angular-contenteditable.js"></script>
<title>Set contacts</title>
</head>
<body ng-app="myApp" ng-controller="MyCtrl">
<div class="container">
<table>
<thead>
<tr>
<th>Prenom</th>
<th>Nom</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="contact in contacts">
<td ng-model="contact.first_name" contenteditable></td>
<td ng-model="contact.last_name" contenteditable></td>
<td ng-model="contact.email" contenteditable></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>