yearofmoo / AngularJS-Scope.SafeApply

AngularJS $scope.$apply() without the hassle and errors :)
70 stars 23 forks source link

Error: $injector:unpr Unknown Provider #17

Open x1unix opened 8 years ago

x1unix commented 8 years ago

Angular throws error when I minify script using uglifyJS:

app.js:2 Uncaught Error: [$injector:unpr] Unknown provider: tProvider <- t
TheMagnificent11 commented 7 years ago

I have this issue as well.

My current workaround is to minify all my Angular scripts into the lib.min.js, then add the minified distribution of Scope.SafeApply and finally add the minified scripts of my application app.min.js.

Ideally, I'd like to minify everything into one Javascript file.