Here we’ll use the
ng-map directive. As the name says, it is a directive for creating and manipulating maps. You can find more information on ng-map at http://ngmap.github.io/.
We will utilize the same code that we utilized as a part of the past case as a beginning stage. What’s more, it is suggested that you as of now have Bower introduced on your framework. On the off chance that you don’t have or know Bower, don’t stress, we will exhibit how to introduce it physically.
- At the root project folder, open your terminal window and type:
bower install ngmap --save
- To get the directive to work properly, you need to add the Google Maps script. In this example, we will use the code directly from the Google CDN through this link: //maps.google.com/maps/api/js.
- Open the
index.htmlfile and add the following script tag right after the
- Add the
ng-mapscript right after the Google Maps script: