I would like to have two home pages, the first would be for users who have not logged in and the second for users that are logged in.
This is my current set up:
.config(function ($stateProvider,$rootScope) { $stateProvider .state('welcome', { url: '/', templateUrl: 'app/welcome/welcome.html', controller: 'WelcomeCtrl', onEnter: function() { if (userIsLoggedIn()) { $stateProvider.go('home'); } });
});