Organizational Research By

Surprising Reserch Topic

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
http://localhost/555/Reservation/Map/SearchConnection

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) {
  $routeProvider.
    when('/SearchConnection', {
        templateUrl: 'SearchConnection.html'
    }).
    otherwise({
        redirectTo: '/'
    });
 });


my Map.cshtml:

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


The folder structure is following:

root: MyWebApplication
-Views
--Reservation: Map.cshtml , SearchConnection.html
    
asked Oct 19, 2015 by ukohale
0 votes
2 views



Related Hot Questions



Government Jobs Opening


...