Angular 2 Hosted on IIS: HTTP Error 404

前端 未结 4 1618
北荒
北荒 2020-12-13 07:05

I have simple app with one component that expects certain parameters from url. there is only one route in the application:

const appRoutes: Routes = 
                


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 07:46

    If you are using an IIS application like myApp below your default web site (then the URL to your application should have the syntax http://localhost/myApp/my-angular-route), then you should try to modify the action to

    ;
    

    Then it works for my environment without any problems.

    Step by step instructions can be found here: https://blogs.msdn.microsoft.com/premier_developer/2017/06/14/tips-for-running-an-angular-app-in-iis/

提交回复
热议问题