allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 517 forks source link

Map directive should not include "E" #861

Open garry3peace opened 6 years ago

garry3peace commented 6 years ago

The code in /directives/map.js Isn't this supposed to be :

var mapDirective = function () { return { restrict: 'A', //no "E" since element "map" is reserved word. controller: '__MapController', controllerAs: 'ngmap' }; };

Or alternately, this line should exclude "E" angular.module("ngMap").directive("map",[e]);