-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanikanta.html
43 lines (39 loc) · 858 Bytes
/
manikanta.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
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="manikanta.css">
<script src="lib/angular.min.js"></script>
</head>
<body>
<header id="top_header">
<h1>UX Society Members</h1>
</header>
<nav id="top_nav">
<input type="text" name="search" placeholder="Search..">
</nav>
<div ng-app= "myApp" ng-controller="customersCrtl">
<div id="new_div">
<section id="main_section">
<table border="1">
<tr>
<th>Name</th>
<th>Occupation</th>
<th>Company</th>
</tr>
<tr ng-repeat="x in names">
<td>{{x.firstName}}{{x.middleInitial}}{{x.surname}}</td>
<td>{{x.occupation}}</td>
<td>{{x.company}}</td>
</tr>
</table>
</section>
</div>
<script>
var app=angular.module('myApp',[]);
app.controller('customersCtrl', function($scope, $http) {
$http.get("data.json")
.then(function(response){$scope.names=response.records});
});
</script>
</body>
</html>