Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 根页面IONIC2-ionViewWillEnter()事件_Angular_Ionic Framework_Ionic2_Ionic View - Fatal编程技术网

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
    })