angularjs-google-maps
angularjs-google-maps copied to clipboard
NgMap is not defined
I get
Uncaught ReferenceError: NgMap is not defined
when I try ``` var nm = NgMap.getMap(); var svc = new google.maps.places.PlacesService(nm);
show more code plz... did you inject NgMap in your controller, what about in app.js? then we can help more :)
Check if correctly injected NgMap in module, in controller, and with correct order.
I had the same issued, but it is fixed.
My app.js file
angular.module("myApp", ['ngRoute', 'ngMap']).
My city.ctrl.js file
angular.module('myApp')
.controller('MyCtrl', ['$scope', 'MyCities', 'NgMap', function($scope, MyCities, NgMap) {