I have an app with login page and other pages that availibale after authentication. The problem is that other pages have side menu. Side menu must been placed in root template(app.html) with
ion-nav and controled via
MenuController. Is there other way to setup menu? I mean skip this nasty playing with
enabled/disable for Login. Also that couse a lot of troubles for me becouse in my side menu i have a component that connects to backend for some data and this data is requires auth token. So I use some kind of hacks to disable loading from backend before authetication just becouse the sidemenu is always up.
I store auth token in storrage for futher usage. So when user relaunch app he can work without auth. But before app checked all the sruff he or shee see a page that set as root. So what is best practice to skip somekinf of blinking for pages that user shoudnt see. For how I’ve set a blank page as root. But I dont think that is a best practice.
Thank you and sorry for my poor English skills.