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) {
    .state('login', {
      url: '/login',
      templateUrl: 'templates/login.html',
      controller: 'loginCtrl'

the browser navigate to this url


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


Thanks Claudio


This is a gist: