Skip to content
Universal javascript support for Angular
TypeScript Python JavaScript Shell HTML
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci build: enable verbose_failures for CI (#1192) Jul 4, 2019
.github chore: bump number of locks per lock-closed bot run to 100 (#1226) Sep 4, 2019
docs chore: typo Jul 3, 2019
integration fix(express-engine): add bundleDependencies and lazy-loading fixes (#… May 26, 2019
modules chore: update bazel version (#1203) Jul 12, 2019
scripts fix(express-engine): add bundleDependencies and lazy-loading fixes (#… May 26, 2019
tools chore: update deps Jul 4, 2019
.bazelignore feat(hapi-engine): add schematics (#1057) Dec 25, 2018
.bazelrc build: add back bazelrc (#1110) Dec 25, 2018
.editorconfig chore(.editorconfig): remove newline for .json Aug 7, 2015
.gitignore build: update Bazel to use fine-grained deps (#1083) Dec 23, 2018
.npmignore feat(universal): AOT support (#560) Oct 5, 2016
BUILD.bazel build: update to latest bazel and angular (#1155) Apr 25, 2019
CHANGELOG.md chore(release): 8.1.1 Jul 4, 2019
CONTRIBUTING.md chore(example): clean up unmaintained examples folder Jul 12, 2016
LICENSE chore: bump year (#1115) Jan 1, 2019
README.md docs: update roadmap Jul 11, 2019
UPGRADE-GUIDE.md docs: refactor READMEs (#1006) Jun 4, 2018
WORKSPACE chore: update bazel version (#1203) Jul 12, 2019
angular-metadata.tsconfig.json chore: release v8.0.0-rc.0 (#1158) Apr 26, 2019
angular.tsconfig.json test(e2e): add e2e testing (#1013) Jun 10, 2018
index.bzl build: update Bazel to use fine-grained deps (#1083) Dec 23, 2018
package.json chore: update bazel version (#1203) Jul 12, 2019
publish-next.sh build: publish only ng_package-s tagged with 'release' (#1060) Aug 27, 2018
publish.sh build: publish only ng_package-s tagged with 'release' (#1060) Aug 27, 2018
tsconfig.json test(express-engine): add basic unit tests (#953) Apr 14, 2018
tslint.json chore: update deps (#1185) Jun 29, 2019
yarn.lock chore: update bazel version (#1203) Jul 12, 2019

README.md

CircleCI Join the chat at https://gitter.im/angular/universal

Angular Universal

Angular Universal

Table of Contents


Introduction

The Angular Universal project is a community driven project to expand on the core APIs from Angular (platform-server) to enable developers to do server side rendering of Angular applications in a variety of scenarios.

This repository will host the various tools like engines to integrate with various backends(NodeJS, ASP.NET etc.) and also extra modules and examples to help you started with server side rendering.

The Universal project is driven by community contributions. Please send us your Pull Requests!

Getting Started

* NodeJS :: Example repo

  • Minimal universal example

* ASP.NET Core :: Universal Starter repo

  • Installation: Clone the above repo, npm i && dotnet restore (VStudio will run these automatically when opening the project)
  • Launch files included for both VSCode & VStudio to run/debug automatically (press F5).

Version 8

Follow this upgrade guide if you are upgrading an exsiting Universal project to Angular version 8 - Guide

Packages

The packages from this repo are published as scoped packages under @nguniversal

Universal "Gotchas"

Moved to /docs/gotchas.md

Roadmap

Completed

  • Integrate the platform API into core
  • Support Title and Meta services on the server
  • Develop Express, ASP.NET Core, Hapi engines
  • Angular CLI support for Universal
  • Provide a DOM implementation on the server
  • Hooks in renderModule* to do stuff just before rendering to string
  • Generic state transfer API in the platform
  • Http Transfer State Module that uses HTTP interceptors and state transfer API
  • Material 2 works on Universal
  • Write documentation for core API
  • Support AppShell use cases

In Progress

  • Better internal performance and stress tests
  • Make it easier to write unit tests for Universal components
  • Node.js bridge protocol to communicate with different language backends - Django, Go, PHP etc.

Planning

  • Static site rendering
  • Development server/watch mode builder with livereload for CLI
  • Full client rehydration strategy that reuses DOM elements/CSS rendered on the server

Upgrading from Angular2-Universal

If you're coming from the original angular2-universal (2.x) here are some helpful steps for porting your application to Angular 4 & platform-server.

Go here to find the guide

Preboot

Control server-rendered page and transfer state before client-side web app loads to the client-side-app. Repo

What's in a name?

We believe that using the word "universal" is correct when referring to a JavaScript Application that runs in more environments than the browser. (inspired by Universal JavaScript)

Universal Team

License

MIT License

You can’t perform that action at this time.