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(){
        this.checkLeave();
    }

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

“ionViewCanLeave” is remove.

So, You should use this url method.