Can someone guide me on how to implement login in the index and info in login using ui.router in Angular?
I want to display different views based on the URL being used. For instance, when logging in and accessing the driver view, I want the HTML to be injected. In other cases, I want to show the menu and sidebar.
index.html
<div ui-view="principal"></div>
login.html
<div ui-view="info"></div>
I have attempted the code below but it isn't working properly. Can anyone assist me?
$stateProvider
.state('login',
{url: '/login',
views: {'principal':{templateUrl: 'app/login/login.html',
controller: 'LoginController',
controllerAs: 'login'},
{'info':{templete: '<div>HELLO</div>'}}
});