For example, on the routes below:
app.config(function($routeProvider){
$routeProvider.when('/dashboard', {
templateUrl: "../views/dashboard.html",
controller : "dashboardCtrl"
}).when('/cadastro', {
templateUrl: "../views/signin.html",
controller : "signInCtrl"
}).otherwise({
redirectTo : '/login'
});
})
I use otherwise
to /login
, which results in the route:
http://www.myapp.com/rotaAtual/#/login
Since it is the default route of the sigle page application , but if I want to change to a route like:
http://www.myapp.com/login
Is it possible?
Thank you.