【发布时间】:2017-07-16 10:57:41
【问题描述】:
如何将项目数据从主页中的 ion-item-options 按钮发送到地图页面。
我要发送此商品数据{{info.map}}
Home.html
<ion-item-sliding *ngFor="let info of infos">
<ion-item>
{{info.title}}
{{info.map}}
</ion-item>
<ion-item-options>
<button ion-button icon-only color="light" (click)="Map()">
<ion-icon name="map"></ion-icon>
</button>
我的 home.html 中有这段代码
想寄到这里 map.ts
let latLng = new google.maps.LatLng(**HERE**);
【问题讨论】:
-
Map()函数在做什么?您正在导航到 map.ts 吗? -
是导航到地图页面