After minifying my AngularJS app, I'm getting this error:
n is not using explicit annotation and cannot be invoked in strict mode
I think it comes from this decorator:
(function () {
function logDecoratorConfig($provide) {
$provide.decorator('$log', logDecorator);
}
function logDecorator($delegate) {
$delegate.debug = function (msg) {
var time = new Date().toString();
console.log(time + " : " + msg);
};
return $delegate;
}
angular.module('services')
.config(['$provide', logDecoratorConfig]);
}());
Maybe it is because the logDecorator function has to be annotated too? How should I do it?