Single page navigation

Hi all,

I’m trying to do a single page application with a navigation by links, and the first view that users see is a login page… but when i try to add this route

app.config(function($stateProvider, $urlRouterProvider) {
 $stateProvider
    .state('login', {
      url: '/login',
      templateUrl: 'templates/login.html',
      controller: 'loginCtrl'
    });
   $urlRouterProvider.otherwise("/login");
});

the browser navigate to this url

http://localhost:8100/#/login

but in console i see

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (login.html, line 0)

even though it try to get the right path

http://localhost:8100/templates/login.html

Thanks Claudio

This is a gist:
https://gist.github.com/traverso85/fca3932bbabd0fc54e5c