angularjs-imageupload-directive icon indicating copy to clipboard operation
angularjs-imageupload-directive copied to clipboard

A Serious ISSUE

Open lokielse opened this issue 11 years ago • 3 comments

hi, Mischi, It's an usefult directive, and please change the follow

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

to

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

otherwise, 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.

lokielse avatar Mar 11 '14 16:03 lokielse

https://github.com/btford/ngmin

jdhiro avatar Mar 14 '14 08:03 jdhiro

@jdhiro thanks, nice.

lokielse avatar Mar 14 '14 17:03 lokielse

maybe this repo should have a build script so that we don't have to rely on our own minification build to work, or to rely on ngmin to work (i'm on a project where ngmin actually doesn't work).

boxxxie avatar Mar 18 '14 17:03 boxxxie