-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (34 loc) · 884 Bytes
/
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
<!DOCTYPE html>
<html ng-app="testApp">
<head>
<title>[testApp] testApp</title>
<script src="scripts/angular.js"></script>
<script src="//localhost:35729/livereload.js"></script>
<script>
var testApp = angular.module("testApp", []);
testApp.controller("testAppCtrl", function ($scope) {
$scope.appTitle = "[testApp] testApp";
$scope.stuffs = [];
});
</script>
</head>
<body ng-controller="testAppCtrl">
<h3 ng-bind="appTitle"></h3>
<table>
<thead>
<tr>
<th>Plate</th>
<th>Entrance</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="stuff in stuffs">
<td><span ng-bind="stuff.plate"></span></td>
<td><span ng-bind="stuff.entrance"></span></td>
<input type="text" ng-model="stuff.plate" placeholder="What's the plate?" />
</tr>
</tbody>
</table>
<input type="text" data-ng-model="name" /> {{ name }}
</body>
</html>