Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

Ionic 4 ionViewCanLeave functionality

$
0
0

@vorkapps wrote:

Hi all,

I’m writing my app in Ionic 4 (angular + capacitor) and I want to control and allow/forbid going “back” from a sub-page based on some criteria (both using the back “soft” button or the hardware button).

I am new to Ionic so “google is my friend” :slight_smile: but all info I could find relate to Ionic 3 and the function “ionViewCanLeave()” which seems to not be available in Ionic 4.

Any ideas on how to do this?

Thanks for any hints :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>