generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

Wiredep not injecting angular-foundation-6.

Open freeman29 opened this issue 8 years ago • 5 comments

Spare me if this was already answered but I can't find a solution for now. I'm trying to use the latest angular-foundation-6, but it's not injected in to the index.html when serve.

freeman29 avatar Apr 26 '16 09:04 freeman29

Got it working for now. I hope there's a better way than this.

   <!-- build:js(src) scripts/vendor.js -->
        <!-- bower:js -->
        <!-- run `gulp inject` to automatically populate bower script dependencies -->
        <!-- endbower -->
        <script src="../bower_components/angular-foundation-6/dist/angular-foundation.js"></script>
    <!-- endbuild -->

freeman29 avatar Apr 27 '16 00:04 freeman29

This should be as everytime the bower.json from the lib which is not filled right. There is a doc about that.

Swiip avatar Apr 27 '16 11:04 Swiip

For me it works. I installed angular-foundation-6 via bower install --save angular-foundation-6. After I run gulp inject it's injected in my .tmp/serve/app/index.html. Is it really not injected or does the order matter? Did you forget to inject it in angular?

piu130 avatar May 02 '16 06:05 piu130

It also could be that you didn't use --save in the bower install. Libs which are not in the local bower.json are not injected.

Swiip avatar May 09 '16 08:05 Swiip

@Swiip even if I did --save still not injecting. I also checked angular-foundation-6 bower.json, and it has the correct main.

"main": [
    "dist/angular-foundation.js"
  ]

Please lead me to a doc link.

freeman29 avatar May 13 '16 13:05 freeman29