RC.0 : problems with ionViewCanLeave

Hi, I’m trying to use the new ionViewCanLeave added in the RC.0 but I have some issues with it.

I want to pop an alert when the user leave the page but with ionViewCanLeave my alert is displaying correctly but it does not stop the navPop, the page just pop and then display my alert. Did someone manage to make it works ?

here is my code :

     public ionViewCanLeave(){

    public checkLeave(): void {
        let alert = this.alertCtrl.create({
            title: "Leave",
            subTitle: "do you want to leave this page ?",
            buttons: [
                    text: "yes",
                    handler: (data: any) => {
                    text: "no"

“ionViewCanLeave” is remove.

So, You should use this url method.