Get Angular2 routing working on IIS 7.5

前端 未结 6 977
情深已故
情深已故 2020-12-05 17:37

I have been learning Angular2. The routing works just fine when running on the nodejs lite-server. I can go to the main (localhost:3000) page and move through the applicatio

6条回答
  •  余生分开走
    2020-12-05 18:11

    If you are having url other than root of the application you can try this:

     
          
          
            
            
          
          
        
    

    Make sure you have built your Angular app via the following command:

    ng build --base-href=/mypath/myangularapp/dashboard/
    

提交回复
热议问题