Adding Google Maps API to AngularJS -


i need include google maps api in angularjs application. so, i've created plunker jsfiddle.

i think have edit index.html not know how.. help

index.html:

<div ng-app="mapsapp" ng-controller="mapctrl">     <div id="map"></div>     <div id="class" ng-repeat="marker in markers | orderby : 'title'">         <a href="#" ng-click="openinfowindow($event, marker)">{{marker.title}}</a>     </div> </div> 

here updated plunkr. ideally put script i've put in script tags in javascript file (save files> .js) , link in <script src= "location.js"></script> or whatever call (make sure path correct). put style in css stylesheet , include <link rel = "stylesheet" src="style.css"> or whatever.

don't forget include

<script src="http://maps.googleapis.com/maps/api/js?key=&sensor=false&extension=.js"></script> 

you didn't have in initial plunker. external resource in fiddle.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -