Angular 2 Hosted on IIS: HTTP Error 404

前端 未结 4 1621
北荒
北荒 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:50

    STEP 3: add web.config link to angular.json: (because after ng build it will skipped)

    "architect": {
                    "build": {
                        "builder": "@angular-devkit/build-angular:browser",
                        "options": {
                             ..........
                            "assets": [
                                "src/favicon.ico",
                                "src/assets",
                                **"src/web.config"**
                            ]
    

提交回复
热议问题