See:
- The suggested "guard" approach with ionViewCanEnter/ionViewCanLeave appears to lack configuration, leak objects, and could hide dangerous code. · Issue #11459 · ionic-team/ionic-framework · GitHub
- NavGuards with ionoic-angular 3.5.0 has a breaking change · Issue #12193 · ionic-team/ionic-framework · GitHub