Skip to content
Snippets Groups Projects

Fix angular dependency injection scheme

Merged Jaden DIEFENBAUGH requested to merge reports-hotfix into master
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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(
});
}
};
});
}]);
Loading