on the yeoman-ionic framework i've tried to add google map to my app.the problem was that every time i ran grunt serve the index.html scripts got deleted. so i've ran this:bower install --save angular-google-maps and the problem solved since it wrote the scripts on some other file in addition to index.html. the only problem is when i ran grunt serve againt i got a diffrent error and ever since then i just can't figure out what i am doing wrong...
Uncaught ReferenceError: google is not defined
I was getting that error too. It turned out to be related to the order in which I loaded my script files. try loading your script files in this order:
<script src='//maps.googleapis.com/maps/api/js?sensor=false'></script> <script src='/path/to/underscore[.min].js'></script> <script src='/path/to/lodash.underscore[.min].js'></script> <script src='/path/to/angular-google-maps[.min].js'></script>