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

Minified files and injecting depencies

Open Revokee opened this issue 7 years ago • 0 comments

I ran into an issue where angular-swiper minified files (minified by Rails Asset Pipeline) were not working because this library doesn't inject dependencies.

For those with this issue, I changed this:

controller: function($scope, $element, $timeout) {...},

to this:

controller: ['$scope', '$element', '$timeout', function($scope, $element, $timeout) {...}],

And now it's working fine in Production (:

Let me know if this worth a PR.

Revokee avatar Apr 16 '18 01:04 Revokee