Skip to content
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.

Minified files and injecting depencies #203

Open
Revokee opened this issue Jan 14, 2018 · 0 comments
Open

Minified files and injecting depencies #203

Revokee opened this issue Jan 14, 2018 · 0 comments

Comments

@Revokee
Copy link

Revokee commented Jan 14, 2018

I ran into an issue where angular-masonry 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('MasonryCtrl', function controller($scope, $element, $timeout) {

to this:

.controller('MasonryCtrl', ['$scope', '$element', '$timeout', function controller($scope, $element, $timeout) {

And now it's working fine in Production (:

Let me know if this worth a PR.

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

No branches or pull requests

1 participant