angular/integration/platform-server
Andrew Kushnir 59837f4749 refactor(platform-server): import xhr2 dynamically in the ServerXhr class (#50095)
This commit updates the `@angular/common/http` and `@angular/platform-server` packages to allow dynamic import of the `xhr2` dependency. The `xhr2` dependency has side-effects that rely on a global scope and as a result in some environments those side-effectful calls fail. With the changes from this PR, the import is delayed until it's actually needed, which gives a chance for the underlying platform to setup global scope (via shims) as needed.

Co-authored-by: alan-agius4 <17563226+alan-agius4@users.noreply.github.com>

PR Close #50095
2023-05-08 14:32:43 -07:00
..
e2e test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00
projects test: update platform-server tests to test both ngmodule and standalone application (#49927) 2023-04-19 14:56:29 +00:00
.editorconfig test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00
.gitignore test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00
angular.json refactor(platform-server): import xhr2 dynamically in the ServerXhr class (#50095) 2023-05-08 14:32:43 -07:00
BUILD.bazel test(core): add size tracking test for hydration apps (#49955) 2023-04-24 09:57:52 -07:00
package.json test(core): add size tracking test for hydration apps (#49955) 2023-04-24 09:57:52 -07:00
README.md test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00
tsconfig.json test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00
yarn.lock test: update platform-server integration tests to use the Angular CLI (#49900) 2023-04-18 19:47:02 +00:00

PlatformServer

This project was generated with Angular CLI version 16.0.0-rc.0.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.