I\'m having a problem with Angular JS on IIS 8.x with MVC. My application index page with virtual directory is like so:
https://myapp.xyz/VirtualDirectory/
try to add this in you head tag.
<html>
<head>
<base href="/VirtualDirectory/">
</head>
<body>
...
</body>
I found that if you use the ./ syntax for the path, you don't need to involve Razor.
Code which fails:
$routeProvider.when("/productList", {
templateUrl: "/app/products/productListView.html", controller: "ProductListController as vm"
});
Code that works: (note the . before /app)
$routeProvider.when("/productList", {
templateUrl: "./app/products/productListView.html", controller: "ProductListController as vm"
});