Good afternoon,
I'm participating in a project and I'm using AngularJS and UI-router, much of it already done, but I'm not sure how I can get the login menu, I'd like it to appear only after authentication. If anyone can give a force there, thank you right away. Below is the print and the routes.
Routes:
const boletoCorretoraState = {
name: 'boletoCorretora',
url: '/boletoCorretoraPublico',
component: 'boletoCorretora',
};
const boletoEstoqueState = {
name: 'boletoEstoque',
url: '/boletoEstoquePublico',
component: 'boletoEstoque',
};
const consolidadoState = {
name: 'consolidado',
url: '/consolidado',
component: 'consolidado',
};
const consultaState = {
name: 'consulta',
url: '/consulta',
component: 'consulta',
};
const loginState = {
name: 'login',
url: '/login',
component: 'login',
};
$stateProvider.state(boletoCorretoraState);
$stateProvider.state(boletoCorretora2State);
$stateProvider.state(boletoEstoqueState);
$stateProvider.state(boletoEstoque2State);
$stateProvider.state(consolidadoState);
$stateProvider.state(consultaState);
$stateProvider.state(loginState);
$urlRouterProvider.otherwise('/login');
$locationProvider.html5Mode(true);
}