我有一些问题,让角度谷歌地图在我的网站上工作。
在包含了所需的库(googleapis/ locash.js/ angular-google-maps.min.js)之后,我无法配置应用程序。
我在app模块中添加了‘google-map’,如下所示:
var app = angular.module('app', ['iso.directives', 'ngSanitize', 'ui.select', 'facebook', 'google-maps'.ns()]);我收到了“未定义不是函数”的错误。
我正在学习https://angular-ui.github.io/angular-google-maps/#!/use中的教程
我看过这个(.ns() undefined in google angular maps directive)线程,但没有帮助。
有谁可以帮我?
谢谢!
发布于 2014-11-19 14:54:23
看起来他们已经摆脱了ns()函数,但是还没有更新文档:
https://github.com/angular-ui/angular-google-maps/pull/872/ https://github.com/angular-ui/angular-google-maps/issues/821
在代码中将'string'.ns()的所有实例更新为'uiGmapstring‘,这样就可以了。
https://stackoverflow.com/questions/26867638
复制相似问题