【发布时间】:2015-08-28 22:55:53
【问题描述】:
我想在 AngularJS 中创建一个根据位置显示 Google 地图的简单指令。
我收到此错误:Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
我创建了下一个 plunker 来重现该问题:http://plnkr.co/edit/Fnmanw1sjblKTJNmYGaV?p=preview
【问题讨论】:
-
通常建议在 SO 上也包含代码,以防代码的外部引用不再可用
标签: angularjs google-maps