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
This commit is contained in:
parent
7799fbfb07
commit
769f0c0840
@ -2,6 +2,9 @@
|
||||
|
||||
var filtersModule = require('./_index.js');
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function percentage($filter) {
|
||||
return function(input, decimals) {
|
||||
return $filter('number')(input * 100, decimals || 2) + '%';
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
var servicesModule = require('./_index.js');
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
function ConfigService($http, $log, $q) {
|
||||
var service = {};
|
||||
|
||||
|
@ -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 = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user