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:
Glauco Oliveira 2015-11-05 15:14:16 -02:00
parent 7799fbfb07
commit 769f0c0840
3 changed files with 16 additions and 1 deletions

View File

@ -2,6 +2,9 @@
var filtersModule = require('./_index.js');
/**
* @ngInject
*/
function percentage($filter) {
return function(input, decimals) {
return $filter('number')(input * 100, decimals || 2) + '%';

View File

@ -2,6 +2,9 @@
var servicesModule = require('./_index.js');
/**
* @ngInject
*/
function ConfigService($http, $log, $q) {
var service = {};

View File

@ -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 = {};