Chromium Code Reviews| 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 $scope.changeResultType = function() { | |
| 14 $http.get("/results/" + $scope.resultType).then( | |
| 15 function(response) { | |
| 16 $scope.results = response.data; | |
| 17 $scope.sortColumn = 'test'; | |
| 18 } | |
| 19 ); | |
| 20 } | |
| 21 } | |
| 22 ); | |
| OLD | NEW |