docs: update App Shell guide to reflect its actual behavior (#40210)

PR Close #40210
This commit is contained in:
Hadrien TOMA 2020-12-19 18:39:05 +01:00 committed by Joey Perrott
parent 5831d2b685
commit f7642ceff3
1 changed files with 15 additions and 4 deletions

View File

@ -32,9 +32,22 @@ After running this command you will notice that the `angular.json` configuration
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/my-app-server",
"outputPath": "dist/my-app/server",
"main": "src/main.server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"sourceMap": false,
"optimization": true
}
}
},
"app-shell": {
@ -67,6 +80,4 @@ Or to use the production configuration.
ng run my-app:app-shell:production
</code-example>
To verify the build output, open `dist/my-app/index.html`. Look for default text `app-shell works!` to show that the app shell route was rendered as part of the output.
To verify the build output, open `dist/my-app/browser/index.html`. Look for default text `app-shell works!` to show that the app shell route was rendered as part of the output.