Já tentou criar dois app?
exemplo:
var login=angular.module('login', []);var homeApp=angular.module('homeApp', []);
no caso o Homeapp , ficaria apenas as rotas e o login caso não consigo entrar...
login.controller('LoginController', function($scope) {
$scope.user = {};
$scope.loginUser=function() {
var username=$scope.user.name;
var password=$scope.user.password;
if(username=="admin" && password=="admin") {
$location.path( "/home" );
} else {
$scope.message="Error";
}
};});
Em 24 de março de 2014 10:32, Ziobudda <[email protected]> escreveu:
> Please, english.
>
> M.
>
> Il giorno 24/mar/2014, alle ore 12:19, Marcelo Ribeiro <
> [email protected]> ha scritto:
>
> Pessoal,
> Bom dia.
>
> Estou começando no angularjs, montei uma página nela coloquei o ng-view e
> a partir daí ok, todos as páginas "partials" são carregadas dentro do
> ng-view, tudo certinho... Mas quando o usuário clicar na opção "Logof" eu
> preciso direciona-lo para uma página inteiramente nova, mas ele está
> trazendo meu arquivo de login.html para dentro do ng-view, como se fosse
> uma partial mas não quero esse efeito, eu quero trazer a página inteira,
> como devo fazer isso? desculpe a ignorância...
>
> Abs.
> Marcelo
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Davide Morelli
> [email protected]
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.