Skip to content
Snippets Groups Projects
Commit f75559a1 authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH
Browse files

fix angular dependency injection scheme

parent e108f234
No related branches found
No related tags found
1 merge request!232Fix angular dependency injection scheme
Pipeline #
......@@ -20,7 +20,7 @@
* with the BEAT platform. If not, see http://www.gnu.org/licenses/.
*/
//This factory retrieves data from the REST API and associates it with the $scope
angular.module('reportApp').factory('experimentFactory', 'UrlService', function($http, $q, UrlService){
angular.module('reportApp').factory('experimentFactory', ['$http', 'UrlService', function($http, UrlService){
let urlBase = '/api/v1/experiments';
let prefix = new URL(UrlService.getPrefix()).pathname;
if(prefix.endsWith('/'))
......@@ -51,4 +51,4 @@ angular.module('reportApp').factory('experimentFactory', 'UrlService', function(
});
}
};
});
}]);
......@@ -20,7 +20,7 @@
* with the BEAT platform. If not, see http://www.gnu.org/licenses/.
*/
//This factory retrieves data from the REST API and associates it with the $scope
angular.module('reportApp').factory('plotterFactory', ['$http', function($http){
angular.module('reportApp').factory('plotterFactory', ['$http', 'UrlService', function($http, UrlService){
let prefix = new URL(UrlService.getPrefix()).pathname;
if(prefix.endsWith('/'))
prefix = prefix.slice(0, -1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment