1

I have MVC application with angular. Iam using route provider that is working fine on debug mode but when Im setting my app on iis it's not working, the site url should be: server/applicationName/#/Routeprovider But actually the url is: server/applicationName#/Routeprovider Only if I'm adding / to the url it's working... Anyone had this problem before?

Here is my code:

$routeprovider.
when("/", {
   templateUrl: "Statics/NewUser.html"
}).
when("/Admin", {
   templateUrl: "Statics/Admin.html"
});

2 Answers2

0

try it now ...

  $routeprovider.
when("/", {
   templateUrl: "/Statics/NewUser.html"
}).
when("/Admin", {
   templateUrl: "/Statics/Admin.html"
})
Faisal
  • 32
  • 2
  • 7
0

did you try to use the baseURL attribute in the main HTML page

Mhand7
  • 527
  • 1
  • 3
  • 21