Is there a better way to set the initial screen in my Ionic framework application based on whether or not the user is logged in?
In the angular.module.config section, I currently use this approach:
if (window.localStorage.getItem("userKey") != null)
$urlRouterProvider.otherwise('/tab/content');
else
$urlRouterProvider.otherwise('/sign-in');
Would appreciate any suggestions or feedback on if this is the right approach.
Thank you!