From 26d18605181e3bd45e3afba26e4b0a0fb046c145 Mon Sep 17 00:00:00 2001 From: Jaden Diefenbaugh <blakcap@users.noreply.github.com> Date: Wed, 8 Feb 2017 13:53:44 +0100 Subject: [PATCH] controller dont depend on global vars --- .../reports/static/reports/app/controllers/reportController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/reports/static/reports/app/controllers/reportController.js b/beat/web/reports/static/reports/app/controllers/reportController.js index 3ba9819e7..5381a592b 100644 --- a/beat/web/reports/static/reports/app/controllers/reportController.js +++ b/beat/web/reports/static/reports/app/controllers/reportController.js @@ -21,7 +21,7 @@ */ //This controller retrieves data from the reportFactory/experimentFactory through the REST API and associates it with the $scope //The $scope is ultimately bound to the report view -app.controller('reportController',['$scope', 'reportFactory', 'experimentFactory', 'plotterFactory', 'dataFactory', '$q', function ($scope, reportFactory, experimentFactory, plotterFactory, dataFactory, $q){ +angular.module('reportApp').controller('reportController',['$scope', 'reportFactory', 'experimentFactory', 'plotterFactory', 'dataFactory', '$q', function ($scope, reportFactory, experimentFactory, plotterFactory, dataFactory, $q){ $scope.q = $q; $scope.user; $scope.report_id; -- GitLab