Hi
I am trying to block certain views for App user based on Role,
My logic is to check the View I am just entering, and block the view before it completely loads, so that he will not have access to the restricted pages.
any ways to do so with nav Guards
ā in app.component.ts
this.nav.viewWillEnter.subscribe((view) => {
let currentModule = view.instance.constructor.name;
// here I am checking currentModule
// after this I want to conditionally load the pages,
// I am not able to prevent page from entering,
});