angular-momentjs icon indicating copy to clipboard operation
angular-momentjs copied to clipboard

bower's angular-momentjs.min.js throwing errors

Open noducks opened this issue 10 years ago • 2 comments

bower installed angular-momentjs

Then used the minified version angular-momentjs.min.js, and it threw up errors for me.

Error: $injector:unpr
Unknown Provider

Eventually worked out the angular-momentjs.js file worked fine. Just thought I'd mention it instead anyone else runs into that.

noducks avatar Jun 25 '14 19:06 noducks

Minimaiser is working wrong. At the module("gdi2290.moment-service") find code "this.$get =" Minimaizer deleted "['$timeout', '$document', '$q', '$window', " this is call error. Shoud be something this:

this.$get=['$timeout','$document','$q','$window',function(c,d,e,f){var g=e.defer(),h=f.moment;if(b){var i=function(){c(function(){g.resolve(f.moment)})};a(d[0],i)}return b?g.promise:h}];

Not this: this.$get=function(c,d,e,f){var g=e.defer(),h=f.moment;if(b){var i=function(){c(function(){g.resolve(f.moment)})};a(d[0],i)}return b?g.promise:h};

PredokMiF avatar Aug 09 '14 06:08 PredokMiF

thanks for submitting an issue and sorry about this. The repo is overdue for an update

PatrickJS avatar Jan 15 '15 04:01 PatrickJS