Professional Documents
Culture Documents
In this lab, we will be implementing Google Maps into our business details view.
Initial setup
Head to http://angular-ui.github.io/angular-google-maps/#!/ and click on the download button. A new tab for
...
<script src="js/angular-google-maps.min.js"></script>
<script src="js/oauth-signature.min.js"></script>
<script src="js/app.js"></script>
...
https://raw.githubusercontent.com
com/nmccready/angular-simple-logger/master/dist/angular-si
mple-logger.min.js
https://raw.githubusercontent.com
com/lodash/lodash/4.0.0/dist/lodash.min.js
Remember to put them into the js folder and import them. It will look something like this after that.
...
<!-- your app's js -->
<script src="js/lodash.min.js"></script>
<script src="js/angular-simple-logger.min.js"></script>
<script src="js/angular-google-maps.min.js"></script>
<script src="js/oauth-signature.min.js"></script>
<script src="js/app.js"></script>
...
<script src='http://maps.googleapis.com/maps/api/js?sensor=false'></script>
We will now need to include the Google Maps API as an angular dependency. Head to app.js and add
uiGmapgoogle-maps in.
And finally, modify the card tag in feed-details.html so that it looks like this:
Reading