Re-introduce menu on the result page
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
var dashboardCtrl = angular.module('dashboardCtrl', ['resultsFactory']);
|
||||
var dashboardCtrl = angular.module('dashboardCtrl', ['resultsFactory', 'menuService']);
|
||||
|
||||
dashboardCtrl.controller('DashboardCtrl', ['$scope', '$routeParams', 'Results', function($scope, $routeParams, Results) {
|
||||
$scope.dashboard = "this is a dashboard";
|
||||
dashboardCtrl.controller('DashboardCtrl', ['$scope', '$routeParams', 'Results', 'Menu', function($scope, $routeParams, Results, Menu) {
|
||||
$scope.runId = $routeParams.runId;
|
||||
$scope.Menu = Menu.setCurrentPage('dashboard', $scope.runId);
|
||||
|
||||
Results.get({runId: $routeParams.runId}, function(result) {
|
||||
$scope.result = result;
|
||||
console.log(result);
|
||||
|
||||
Reference in New Issue
Block a user