Go to file
Marcus Krahl 654ff6115a fix(http): deep copy for constructor using existing Headers (#10679)
When creating a new Headers object using an existing Headers object
the existing Headers map is copied by reference. Therefore adding a
new Header value to the new Headers object also added this value to
the existing Headers object which is not in accordance with the
spec.
This commit alters the constructor to create a deep copy of existing
Headers maps and therefore unlink existing Headers from new Headers.

Closes #6845

BREAKING CHANGE: 

any code which relies on the fact that a newly
created Headers object is referencing an existing Headers map is
now broken, but that should normally not be the case since this
behavior is not documented and not in accordance with the spec.
2016-08-18 15:00:44 -07:00
.github docs(GH): you never know... (#10740) 2016-08-12 10:33:39 -07:00
modules fix(http): deep copy for constructor using existing Headers (#10679) 2016-08-18 15:00:44 -07:00
scripts fix(ngc): don't codegen foo.d.ngfactory.ts from foo.d.ts (#10833) 2016-08-18 10:11:06 -07:00
tools feat(core): Throw a descriptive error when BrowserModule is installed a second time (via lazy loading). (#10899) 2016-08-18 13:34:28 -07:00
.bowerrc chore(dgeni): clean up legacy typings bundle creation 2015-10-29 21:19:59 +00:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig chore(.editorconfig): include markdown config 2015-01-27 00:14:48 -08:00
.gitattributes build: fix some issues on Windows platforms 2016-06-23 10:46:01 +02:00
.gitignore chore(tsc-wrapped): update to newest tsickle 2016-06-09 16:45:16 -07:00
.nvmrc build(node): upgrade to node 5.4.1 2016-01-22 03:25:34 +00:00
.travis.yml ci(travis): enable fast finish mode for optional modes. (#10588) 2016-08-11 23:03:28 -07:00
CHANGELOG.md docs(changelog): added missing closing parenthesis (#10783) 2016-08-16 19:37:24 -07:00
COMMITTER.md chore(docs): update the merge process docs 2015-12-23 02:32:02 +00:00
CONTRIBUTING.md chore(Dart): remove obsolete files, update the docs 2016-07-22 08:20:46 -07:00
DEVELOPER.md chore(docs): remove sentences for dart (#10781) 2016-08-16 19:38:49 -07:00
LICENSE Update change from Apache to MIT license 2016-01-08 13:41:58 -08:00
NAMING.md refactor(ngProbe): rename to ng.probe 2015-08-31 21:32:10 +00:00
README.md chore(Dart): remove obsolete files, update the docs 2016-07-22 08:20:46 -07:00
TOOLS.md chore(docs): remove sentences for dart (#10781) 2016-08-16 19:38:49 -07:00
TRIAGE_AND_LABELS.md chore(docs): explain the process for merging changes to master 2015-08-11 21:28:46 +00:00
bower.json fix(benchmarks): update react and polymer benchmarks and get tree update numbers for all of the benchmarks as well. 2015-10-28 13:17:01 -07:00
browser-providers.conf.js ci(browser providers): update browsers in SL and BS (#10425) 2016-08-01 08:00:12 -07:00
build.sh chore: remove deprecated router 2/2 2016-08-09 15:24:14 -07:00
circle.yml chore(lint): re-enable clang-format on tools/ 2016-05-26 15:46:03 -07:00
gulpfile.js chore(playground): clang-format 2016-08-05 12:26:28 -07:00
karma-js.conf.js test: execute router tests on .`/test.sh browser` (#10053) 2016-07-21 16:12:40 -07:00
npm-shrinkwrap.clean.json fix(i18n): update NgLocalLocalization (#10771) 2016-08-13 05:43:36 -07:00
npm-shrinkwrap.json fix(i18n): update NgLocalLocalization (#10771) 2016-08-13 05:43:36 -07:00
npm-shrinkwrap.readme.md build(npm): add tools/npm/reshrinkwrap script and update docs 2016-01-22 03:25:33 +00:00
package.json fix(i18n): update NgLocalLocalization (#10771) 2016-08-13 05:43:36 -07:00
perf-cloud-secret.template.js refactor(build): support multiple configurable browsers for e2e and perf tests 2015-01-20 13:06:37 -08:00
presubmit.sh refactor(compiler): rename /compiler_cli to /compiler-cli 2016-06-02 13:50:32 -07:00
protractor-js-dev.conf.js chore(test): setup a gulp task for quickly running e2e tests against the dev server 2015-06-11 16:58:32 -07:00
protractor-js-new-world.conf.js build: use connect web server instead of SimpleHTTPServer 2016-05-25 08:22:07 -07:00
protractor-js-prod.conf.js chore(build): add a task to watch and render examples and e2e tests for production 2015-06-19 18:57:41 -04:00
protractor-js.conf.js build: adding basic e2e testing infrastructure 2016-05-02 08:15:10 -07:00
protractor-shared.js refactor(chore): Replace all 'bindings' with 'providers' 2016-05-23 13:31:08 -07:00
publish-packages.sh chore: remove deprecated router 2/2 2016-08-09 15:24:14 -07:00
shims_for_IE.js test: add Blob and FormData polyfills for testing in IE9 (#10563) 2016-08-12 10:35:19 -07:00
test-main.js chore: remove deprecated router 2/2 2016-08-09 15:24:14 -07:00
test.sh chore: add browserNoRouter test running mode 2016-08-02 09:28:04 -07:00
tslint.json chore(lint): enable lint check for duplicate vars 2016-07-13 12:33:39 -07:00

README.md

Build Status CircleCI Join the chat at https://gitter.im/angular/angular Issue Stats Issue Stats npm version Downloads

Sauce Test Status

Angular

Angular is a development platform for building mobile and desktop web applications. This is the repository for Angular 2 Typescript/JavaScript (JS).

Angular2 for Dart can be found at dart-lang/angular2.

Angular 2 is currently in Release Candidate.

Quickstart

Get started in 5 minutes.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.