Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular NaNmageDirective error #34

Open
GaurangGhinaiya opened this issue Jun 4, 2015 · 1 comment
Open

Angular NaNmageDirective error #34

GaurangGhinaiya opened this issue Jun 4, 2015 · 1 comment

Comments

@GaurangGhinaiya
Copy link

Error: [$injector:unpr] http://errors.angularjs.org/1.2.27/$injector/unpr?p0=aProvider%20%3C-%20a%20%3C-NaNmageDirective at Error (native) at http://www.example.com/min/admin-production.min.js:19:10395 at http://www.example.com/min/admin-production.min.js:19:25331 at Object.c [as get] (http://www.example.com/min/admin-production.min.js:19:24402) at http://www.example.com/min/admin-production.min.js:19:25405 at c (http://www.example.com/min/admin-production.min.js:19:24402) at Object.d [as invoke] (http://www.example.com/min/admin-production.min.js:19:24617) at http://www.example.com/min/admin-production.min.js:19:29463 at f (http://www.example.com/min/admin-production.min.js:19:10732) at Object.<anonymous> (http://www.example.com/min/admin-production.min.js:19:29430)

HI i am getting this error while directive call

@GaurangGhinaiya
Copy link
Author

@Mischi

angular.module('imageupload', []) .directive('image', function($q) {...}
It is not work after uglify. For the param $q may be converted to another name such as a,b,c,f, etc by uglify compiler.

So i convert it to and it works perfectly.

angular.module('imageupload', []) .directive('image', ['$q', function($q) {...}]

Please change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant