ngRouter does not redirect to the specified path

1

I'm learning

asked by toledano 26.08.2016 в 00:34
source

1 answer

2

In my case I use ionic for the development of hybrid mobile applications, which is based on angular; of step they recommend to use the ionicbundle.js , which is like a kind of package that gathers all the libraries that uses ionic , angular , angular-ui , among others, I hope it serves you.

And most importantly, otherwise does not use {redirectTo:"ruta"} but only the string with the route, for example:

$urlRouterProvider.otherwise("/login");

$stateProvider


    .state('login', {
        url: '/login',
        templateUrl: "Templates/login.html",
        controller: "formulario"
    });
    
answered by 26.08.2016 в 00:50