The landing page of my app has two states: home-public, home-logged-in. Now I want to show both states on the same URL, but let the controller and
I am not sure if two states can have the same url. What i can think can be a viable option would be to define a single state
$stateProvider.state('home', {
templateUrl: function (stateParams){
// Implement a logic that select what view from the server should be returned for logged in user and otherwise
//return 'templateurl';
}
})
I have not tried but it should work.