klederson / angular-masonry-directive

A very simple and 100% compatible masonry directive for AngularJS ... do you know how to use masonry? Good! You know how to use this
115 stars 68 forks source link

item.js not loaded - provide solution/hint for wiredep users #29

Open rowild opened 9 years ago

rowild commented 9 years ago

It would behelpful to mention in the Readme thet the dependency "overlay" has a script, item.js, which isn't loaded when wiredep is used. The solution is to use the "overrides" attribute in the bower.json:

{
  "name": "myExampleApp",
  "overrides": {
    "outlayer": {
      "main": [
        "item.js",
        "outlayer.js"
      ]
    }
  },
  "dependencies": {
    "angular": "~1.4.*",
    "angular-masonry-directive": "*",
    ....
  },
  ...
} 
marcusmotill commented 8 years ago

Thanks man, I needed to make it js/item.js and js/outlayer.js to work for anyone else stuck