zgordon01 / GoalMind

2 stars 0 forks source link

Page "flashes" on refresh, or on login/logout #4

Open jacobtarter opened 7 years ago

jacobtarter commented 7 years ago

This is due to the way our states are being handled. Our index.html is set to display the nav all the time, but is then disabled using ng-show. Sometimes this check takes a moment, which leads to the nav flashing up and then disappearing, or the login screen sometimes briefly appearing before the dashboard loads.

This could be handled cleaner by using nested states. essentially, the sidenav code would be added to the dashboard.html file, Then you could create a nested state inside "dashboard" by adding a ui-view to the dashboard.html, inside which you could load in directives, etc.

I believe I can get this working, but just figured I'd put this up so others can consider or give their opinions

zgordon01 commented 7 years ago

May have been fixed throughout all of the changes we've been making. See if the issue is still happening

jacobtarter commented 7 years ago

It does still happen occasionally. I'm not sure if there's a way to prevent this or not

zgordon01 commented 7 years ago

after the '/#/' on the otherwise, confirm if you are still seeing the same issue