angular-docs-cn/packages
Alex Rickabaugh 15a082c74e fix(platform-server): throw a better error message for relative URLs (#15357)
Unlike in the browser, on the server there is no concept of a document origin.
Thus, it is illegal to make requests for relative URLs against Http on platform-server.

Currently this fails with a vague error:

Error: Uncaught (in promise): Error at resolvePromise

This change adds explicit validation and a friendlier error message:

Error: URLs requested via Http on the server must be absolute. URL: /testing

Another option considered was to track the concept of an origin for the platform
and automatically prepend it to relative URLs. This would cause automatic "local
RPCs" to be made, though, which would be an unexpected and undesirable default
behavior.

Fixes #15349

PR Close #15357
2017-03-21 14:26:51 -05:00
..
animations fix(animations): ensure empty animate() steps work at the end of a sequence (#15328) 2017-03-21 14:26:43 -05:00
benchpress refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
common test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
compiler refactor(compiler): only produce `log` expressions for elements / text (#15350) 2017-03-21 14:26:30 -05:00
compiler-cli docs(compiler-cli): mention that `.ngsummary.json` files should be gitignore'd (#15047) 2017-03-21 12:20:38 -05:00
core fix(animations): ensure empty animate() steps work at the end of a sequence (#15328) 2017-03-21 14:26:43 -05:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples feat(upgrade): use `ComponentFactory.inputs/outputs/ngContentSelectors` (#15214) 2017-03-17 13:52:50 -05:00
forms test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
http test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
language-service build: fix paths to typings files so tsickle resolves imports correctly 2017-03-16 17:34:29 -07:00
platform-browser test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
platform-browser-dynamic test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
platform-server fix(platform-server): throw a better error message for relative URLs (#15357) 2017-03-21 14:26:51 -05:00
platform-webworker test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
platform-webworker-dynamic test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
router feat(router): add `ParamMap.keys` to get a list of parameters 2017-03-20 09:19:32 -07:00
upgrade test: add systemjs+umd integration test (#14196) 2017-03-19 12:23:07 -05:00
README.md refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
license-banner.txt refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
router-license-banner.txt refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig.json test(platform-server): add initial e2e tests for platform-server (#15061) 2017-03-14 17:11:39 -07:00
types.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT