ng route can c2 b4t find html page

ng route can c2 b4t find html page  using -'angularjs,visual-studio'

I have a MVC Visual Studio project and want to use the ngRoute.

I am using the IIS.

I am on the page http://localhost/555/Reservation/RoadMap and want to switch to

But I get the error. That it can¬īt find the ressoure: HTTP-Fehler 404.0 - Not Found.
I think I have a mistake in the templateURL.

my app:

var myApp = angular.module("myApp", ['ngRoute']);

myApp.config(function ($routeProvider) {
    when('/SearchConnection', {
        templateUrl: 'SearchConnection.html'
        redirectTo: '/'

my Map.cshtml:

<a href="SearchConnection">Search</a>

The folder structure is following:

root: MyWebApplication
--Reservation: Map.cshtml , SearchConnection.html

asked Oct 19, 2015 by ukohale
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.