Hei如何在angualr js中的iframe中插入經度和緯度?
我正在使用angular並試圖在其中實現iframe
。我嘗試了很多方法來插入來自數據庫的longitude
和latitude
,但是每當嘗試寫這樣的東西時我都會出錯。
我試過
<iframe width="100%" height="250" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q={{product.mall.lat}},{{product.mall.long}}&key= key" allowfullscreen></iframe>
我得到這個錯誤,當我試圖用上述方法
[$interpolate:noconcat]
普通iframe
<iframe width="100%" height="250" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=40.7127837,-74.0059413&key= Akey" allowfullscreen></iframe>
禁止錯誤無法訪問本地服務器 –
不工作bro –
@UsmanIqbal bro請立即檢查 – Sajan