Good evening, I'm having trouble making the login screen in my application
Index.html
<body>
<div ng-include"'dashboard.html'"></div>
<div ng-view></div>
</body>
If I put the form of login
inside index.html
it will show everything along with dashboard
and ng-view
, and I want it to show only the login
screen and when to authenticate the user, redirect it to dashboard
with ng-view
NG-VIEW
angular.module("app").config(function($routeProvider){
$routeProvider.when("/Cliente", {
templateUrl:"Cliente.html",
controller :"ClienteController"
});
$routeProvider.when("/Corretor",{
templateUrl:"Corretor.html",
controller:"CorretorController"
});
$routeProvider.when("/NovoContrato",{
templateUrl:"NovoContrato.html",
controller:"ContratoController"
I could put ng-view
inside dashboard
but then I would have to double <HEAD>
index
in dashboard
...
Would anyone else have another solution ??