grunt-angular-phonegap
grunt-angular-phonegap copied to clipboard
Adding bower components
I have had varying success on installing additional bower packages. So I don't know why they are successful in some instances. Here is an example of a bower package that is not working. I tried to install ratchet2
bower install --save ratchet2
bower.json now includes
...
"angular-route": "1.2.15",
"ratchet2": "*"
},
...
then in the app/index.html I include the CSS
...
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/ratchet2/css/ratchet.css">
<!-- endbower -->
<!-- endbuild -->
...
Then I include the javascript
...
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/ratchet2/js/ratchet.js"></script>
<!-- endbower -->
...
I then run grunt serve
And the javascript and css references are gone.