ksachdeva / angular-swiper

Angular directive for nolimits4web/Swiper
Apache License 2.0
197 stars 94 forks source link

Minified files and injecting depencies #76

Open Revokee opened 6 years ago

Revokee commented 6 years ago

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.