【发布时间】:2019-01-13 05:31:00
【问题描述】:
<agm-marker *ngFor="let k of marker|keyconductores"
[latitude]="{{marker[k].lat}}"
[longitude]="{{marker[k].lng}}" >
</agm-marker>
错误 未捕获的错误:模板解析错误: 解析器错误:在 ng:///AppModule/MapaComponent.html@3:18 ("lng" >
【问题讨论】:
-
您不能在
的 [latitude] 属性中添加 {{}} 登录,只需使用 [latitude]="k.clat" 因为 {{conductores[k].clat}} 是仅在视图中使用以显示其价值 -
你能贴出你的管道键导体吗