我想從我的Google地圖標記中的按鈕打開ListPage。由於導致HomePage類錯誤:沒有供應商NavController
1)
import { NavController, NavParams } from 'ionic-angular';
2)
constructor(public connectivityService: Connectivity, public navCtrl: NavController) {
}
3)
infowindow.setContent('<button style="font-size: 1.5em; color: red; font-weight: bold;" ion-button (click)="showlistPage()">ADD BLOOD</button>' + "</br>" + results[1].formatted_address+'<p style="color: red;">'+distanceToYou+" miles from your location</p>");
5)
showlistPage() {
this.navCtrl.push(ListPage);
}
,但現在我得到這個錯誤:網頁,供navcontroller
它已經在我的app.module '提供商:[{提供:的ErrorHandler,useClass:IonicErrorHandler},位置,谷歌地圖,連接]' '進口從 '../providers/connectivity'{}連通; ' –