Closed BkSouX closed 8 years ago
Erf it was quick ! I just needed to put 'ngInject'; everywhere
const i18n = angular.module('i18n', [ngTranslate, ngSanitize])
.config(($translateProvider) => {
'ngInject';
$translateProvider
.translations('fr', {})
.useSanitizeValueStrategy('sanitizeParameters')
.preferredLanguage('fr');
})
.name;
Hello,
I'm trying to set up my i18n configuration file but I have an issue with an injection. I'm using ES6 with webpack & babel.
So, I have that code :
And that error in the console :
ng-annotate works well with controllers but well, I don't know what's going on with that module.