使用角度绑定与谷歌地图

时间:2015-04-10 19:17:13

标签: javascript angularjs google-maps

我想使用一个简单的谷歌地图嵌入,利用角度绑定使地图更具动态。所以而不是以下

<iframe width="425" height="350" frameborder="0" scrolling="no" 
marginheight="0" marginwidth="0" src="https://maps.google.com/maps?
f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=180+N+500+E,+Salt+Lake+City,+UT
&amp;output=embed"></iframe>

我希望在src属性中添加绑定

<iframe width="425" height="350" frameborder="0" scrolling="no" 
marginheight="0" marginwidth="0" src="https://maps.google.com/maps?
f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q={{event.address}},+{{event.city}},+{{event.state}}
&amp;output=embed"></iframe>

当我这样做时,我在控制台中收到此错误

错误:

  

$ interpolate:noconcat多个表达式

我不确定这意味着什么。

0 个答案:

没有答案