如何將項目數據從主頁中的ion-item-options按鈕發送到地圖頁面。ionic 2從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嗎? –
是導航到地圖頁 – ibowankenobi