Angular 根页面IONIC2-ionViewWillEnter()事件
我想通过从本地检索值自动登录我的应用程序,但我无法做到, 它既没有给出任何错误也没有给出任何东西,我无法执行查询。 请引导我穿过右边的门 ```Angular 根页面IONIC2-ionViewWillEnter()事件,angular,ionic-framework,ionic2,ionic-view,Angular,Ionic Framework,Ionic2,Ionic View,我想通过从本地检索值自动登录我的应用程序,但我无法做到, 它既没有给出任何错误也没有给出任何东西,我无法执行查询。 请引导我穿过右边的门 ``` ```您必须在platform.ready()方法中调用SQL执行,如下所示 ionViewWillEnter() :void { this.platform.ready().then(() => { ///your sql and other code }) 您必须在platform.ready()方
```您必须在
platform.ready()方法中调用SQL执行,如下所示
ionViewWillEnter() :void {
this.platform.ready().then(() => {
///your sql and other code
})
您必须在platform.ready()方法中调用SQL执行,如下所示
ionViewWillEnter() :void {
this.platform.ready().then(() => {
///your sql and other code
})