On Ionic-Angular, acoustics components are ignored

I am trying to use the Cordova plugin I installed with gazebo and get an error in the browser console: GET http://localhost:8100/bower_components/ngCordova/dist/ng-cordova.js

 this is a file structure

enter image description here

and lo, this is what I have in my index.html

<script src="bower_components/ngCordova/dist/ng-cordova.js"></script>

      

+3


source to share


1 answer


Files can only be uploaded if they are in the directory www

. By default, Ionic installs bower packages into a directory www/lib

.

$ ionic add ngCordova

Run this from the project root in the CLI.



This will install ngCordova in the correct directory. Then add a script along this path.

<script src="lib/dist/ng-cordova.js"></script>

+5


source







All Articles