小编3ax*_*xap的帖子

ASP.NET Core多角度应用程序

我有一个ASP.NET Core 2.1,我需要为多个Angular应用程序设置工作区,并具有以下路由:

http://someurl.com/main - >第一个应用程序
http://someurl.com/admin - >第二个应用程序

我使用angular-cli.json以下设置:

"apps": [
{
  "root": "src",
  "outDir": "dist",
  "assets": [
    "assets"
  ],
  "index": "index.html",
  "main": "main.ts",
  "polyfills": "polyfills.ts",
  "test": "test.ts",
  "tsconfig": "tsconfig.app.json",
  "testTsconfig": "tsconfig.spec.json",
  "prefix": "app",
  "styles": [
    "styles.css",
    "../node_modules/bootstrap/dist/css/bootstrap.min.css"
  ],
  "scripts": [],
  "environmentSource": "environments/environment.ts",
  "environments": {
    "dev": "environments/environment.ts",
    "prod": "environments/environment.prod.ts"
  }
},
{
  "root": "src2",
  "outDir": "dist2",
  "assets": [
    "assets"
  ],
  "index": "index.html",
  "main": "main.ts",
  "polyfills": "polyfills.ts",
  "test": "test.ts",
  "tsconfig": "tsconfig.app.json",
  "testTsconfig": "tsconfig.spec.json",
  "prefix": "app",
  "styles": [
    "styles.css", …
Run Code Online (Sandbox Code Playgroud)

asp.net-core angular-cli angular

8
推荐指数
1
解决办法
1927
查看次数

标签 统计

angular ×1

angular-cli ×1

asp.net-core ×1