angular/aio/content/examples/universal
Ward Bell 44c7469495 docs: Migrate Universal guide and code to Standalone (#51564)
Heavily reworked with advice from Alan Agius.

FWIW
* `ng test` fails because there are no unit tests
* `yarn e2e` builds but fails - `Unable to start a WebDriver session.`

**Added `readme.md` to sample code**

Makes it easier for the casual downloader to try the example.

**Added `universal-ngmodule`**

The existing ngModule-based doc has a lot of guidance for developers who are still building with NgModule. Given that we are preserving the existing NgModule guidance (with modifications), it seems prudent to preserve the NgModule form of the Universal guidance. So I copied the existing guide and code to `universal-ngmodule` and added it to the left-side navigation under the "NgModules" sub-tree.

Warning: it retains all of the faults of the original guide ... faults that were addressed in the current revision.

PR Close #51564
2023-09-12 12:20:10 -07:00
..
doc-files docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
e2e/src docs: remove Narco from hero list in code, text, and images (#46008) 2022-05-17 17:47:03 +00:00
src docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
example-config.json build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
readme.md docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
server.ts docs: Migrate Universal guide and code to Standalone (#51564) 2023-09-12 12:20:10 -07:00
tsconfig.server.json docs: update universal example (#48665) 2023-01-10 08:09:54 -08:00
zipper.json build(docs-infra): remove obsolete properties from zipper.json files (#36018) 2020-03-27 10:48:30 -07:00

Instructions for Angular Universal Example Download

This is the downloaded sample code for the Angular Universal (Standalone) guide.

Install and Run

  1. npm install to install the node_module packages
  2. npm run dev:ssr to launch the server and application
  3. Launch the browser to http://localhost:4200