-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (39 loc) · 1.1 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
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=yes">
<title>CSCI435-HWl;sdfv;ldfkdl;f8</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
</head>
<body ng-app="TableFilterApp" ng-controller="TableFilterController">
<input type='text' ng-model='inputValue'> Name: {{inputValue}}
<table>
<tr>
<th>CRN</th>
<th>Course ID</th>
</tr>
<tr>
<td><input ng-model="f.crn"></td>
<td><input ng-model="f.courseID"></td>
<td><input ng-model="f.title"></td>
</tr>
<tr ng-repeat="a in apps | filter:f">
<td>{{a.crn}}</td>
<td>{{a.courseID}}</td>
<td>{{a.title}}</td>
</tr>
</table>
</body>
<script>
angular.module('TableFilterApp', [])
.controller('TableFilterController', function($scope, $http) {
$scope.inputValue = "";
$http.get('class.json')
.then(function(res){
$scope.apps = res.data;
});
});
</script>
</html>