-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (36 loc) · 1.08 KB
/
index.html
File metadata and controls
45 lines (36 loc) · 1.08 KB
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
<!DOCTYPE html>
<html>
<head>
<title>AngularJS Demo</title>
</head>
<body>
<div ng-app="app">
{{ 1 + 1 }}
<div ng-controller="miscCtrl">
{{ message }}
<br>
<input ng-model="message">
<h2>Todo:</h2>
<ul>
<li ng-repeat="task in tasks" ng-click="deleteTask(task)">{{ task }}</li>
</ul>
<input ng-model="newTask">
<button ng-click="addTask(newTask)">Add Task</button>
<table border="1" >
<tr>
<th>Job Title</th>
<th>Name</th>
<th>Salary</th>
</tr>
<tr ng-repeat="cityWorker in cityWorkers">>
<td> {{ cityWorker.job_titles }} </td>
<td> {{ cityWorker.name }} </td>
<td> {{ cityWorker.employee_annual_salary }} </td>
</table>
</div>
</div>
<script type="text/javascript" src="vendor/js/angular.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/misc_ctrl.js"></script>
</body>
</html>