OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Loader: | |
3 * Reads GM result reports written out by results_loader.py, and imports | |
4 * their data into $scope.results . | |
5 */ | |
6 var Loader = angular.module( | |
7 'Loader', | |
8 [] | |
9 ); | |
10 Loader.controller( | |
11 'Loader.Controller', | |
12 function($scope, $http) { | |
13 $http.get("/results/all").then( | |
14 function(response) { | |
15 $scope.results = response.data; | |
16 $scope.sortColumn = 'test'; | |
17 } | |
18 ); | |
19 } | |
20 ); | |
OLD | NEW |