From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../angular/app-shell/app-shell-long.md | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/@schematics/angular/app-shell/app-shell-long.md (limited to 'sandbox/testAppNevena/Front/node_modules/@schematics/angular/app-shell/app-shell-long.md') diff --git a/sandbox/testAppNevena/Front/node_modules/@schematics/angular/app-shell/app-shell-long.md b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/app-shell/app-shell-long.md new file mode 100644 index 00000000..c8598833 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@schematics/angular/app-shell/app-shell-long.md @@ -0,0 +1,47 @@ +An app shell lets Universal render a portion of your application via a route at build time. +This gives users a meaningful first paint of your application that appears quickly +because the browser can simply render the HTML without the need to initialize any JavaScript. + +Use this command with a routing app that is accompanied by a Universal server-side app. + +To create an app shell, use the following command. + + + ng generate app-shell my-app + + +- `my-app` is the name of your client application +- `server-app` is the name of the Universal (server) application + +The command adds two new architect build targets to your `angular.json` configuration file (along with a few other changes). + + +"server": { + "builder": "@angular-devkit/build-angular:server", + "options": { + "outputPath": "dist/my-app-server", + "main": "src/main.server.ts", + "tsConfig": "src/tsconfig.server.json" + } +}, +"app-shell": { + "builder": "@angular-devkit/build-angular:app-shell", + "options": { + "browserTarget": "my-app:build", + "serverTarget": "my-app:server", + "route": "shell" + } +} + + +To verify the that the app has been built with the default shell content: + +1. Run the app-shell target. + + + ng run my-app:app-shell + + +1. Open `dist/app-shell/index.html` in your browser. + +The default text "app-shell works!" verifies that the app-shell route was rendered as part of the output. -- cgit v1.2.3