Erreur 404 avec le routage Angularjs TemplateUrl

Je suis ce tutorielen essayant d'avoir un SPA à l'intérieur de mon MVC3 application lorsque le SPA est appelé par un contrôleur, DemoController.cs.

J'obtiens des erreurs 404 lorsque l'application tente de charger les différents Modèles, (about.html, contact.html et home.html) par l'intermédiaire d'une barre de navigation.

C'est ma structure de répertoire (pas y compris le reste de la MVC3 app):

Scripts
-script.js 
Views
-Demo
--pages
---about.html
---contact.html
---home.html
--Index.cshtml
--_ViewStart.cshtml

C'est mon script.js fichier où j'définir les itinéraires.

//create the module and name it scotchApp
var scotchApp = angular.module('scotchApp', []);

//configure our routes
scotchApp.config(function ($routeProvider) {
$routeProvider

    //route for the home page
    .when('/', {
        templateUrl: 'pages/home.html',
        controller: 'mainController'
    })

    //route for the about page
    .when('/about', {
        templateUrl: 'pages/about.html',
        controller: 'aboutController'
    })

    //route for the contact page
    .when('/contact', {
        templateUrl: 'pages/contact.html',
        controller: 'contactController'
    });
});

//create the controller and inject Angular's $scope
scotchApp.controller('mainController', function ($scope) {
    //create a message to display in our view
    $scope.message = 'Everyone come and see how good I look!';
});

scotchApp.controller('aboutController', function ($scope) {
    $scope.message = 'Look! I am an about page.';
});

scotchApp.controller('contactController', function ($scope) {
    $scope.message = 'Contact us! JK. This is just a demo.';
});

C'est mon index.html code:

    <div ng-app="scotchApp">
    <!-- HEADER AND NAVBAR -->
    <div ng-controller="mainController">
        <nav class="navbar navbar-default">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" href="/">Angular Routing Example</a>
                </div>

                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#"><i class="fa fa-home"></i>Home</a></li>
                    <li><a href="#about"><i class="fa fa-shield"></i>About</a></li>
                    <li><a href="#contact"><i class="fa fa-comment"></i>Contact</a></li>
                </ul>
            </div>
        </nav>

        <!-- MAIN CONTENT AND INJECTED VIEWS -->
        <div id="main">
            <!-- angular templating -->
            <!-- this is where content will be injected -->
            <div ng-view></div>
        </div>
    </div>
</div>

source d'informationauteur schumacherj | 2013-12-01