From 769f0c084096e621c0ed2e4b65941ef60714a602 Mon Sep 17 00:00:00 2001 From: Glauco Oliveira Date: Thu, 5 Nov 2015 15:14:16 -0200 Subject: [PATCH] Add missing @ngInject There were a few place where we forgot to include the @ngInject annotation. Without it the minification tool just mess with the parameters. Change-Id: I83f970885babce1e2254b050ee9839c8ec4df723 --- app/js/filters/percentage.js | 3 +++ app/js/services/config.js | 3 +++ app/js/services/health-api.js | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/js/filters/percentage.js b/app/js/filters/percentage.js index 2afd640f..484acfe2 100644 --- a/app/js/filters/percentage.js +++ b/app/js/filters/percentage.js @@ -2,6 +2,9 @@ var filtersModule = require('./_index.js'); +/** + * @ngInject + */ function percentage($filter) { return function(input, decimals) { return $filter('number')(input * 100, decimals || 2) + '%'; diff --git a/app/js/services/config.js b/app/js/services/config.js index 9e07051d..1f7068b8 100644 --- a/app/js/services/config.js +++ b/app/js/services/config.js @@ -2,6 +2,9 @@ var servicesModule = require('./_index.js'); +/** + * @ngInject + */ function ConfigService($http, $log, $q) { var service = {}; diff --git a/app/js/services/health-api.js b/app/js/services/health-api.js index d4c56c56..b44ab2c8 100644 --- a/app/js/services/health-api.js +++ b/app/js/services/health-api.js @@ -4,8 +4,14 @@ var angular = require('angular'); var servicesModule = require('./_index.js'); +/** + * @ngInject + */ function httpProviderInterceptor($httpProvider) { - $httpProvider.interceptors.push(function($q, $rootScope) { + /** + * @ngInject + */ + $httpProvider.interceptors.push(/* @ngInject */ function($q, $rootScope) { return { 'request': function(config) { $rootScope.$broadcast('loading-started'); @@ -21,6 +27,9 @@ function httpProviderInterceptor($httpProvider) { servicesModule.config(httpProviderInterceptor); +/** + * @ngInject + */ function HealthService($http, config) { var service = {};