Waiting message until the new page is loaded


#1

Hello, how can I display a waiting message until a new page is loaded?
With this code :

let lController = this.ldlCtrl.create({
  content: "Please wait"
});
lController.present();
this.http.post("/api/MyMethod",MyParameters,this.AppService.getOptions())
  .subscribe(				
        //statement
        this.navCtrl.push(MyNewPage, ParametersPage);
     }
  },
    err=>alert(err)
);
lController.dismiss();

The waiting message is displayed for a short time.
Thanks


#2

Move this:

Inside the subsribe so it gets executed when the request is finished.