angular/modules/@angular
Tobias Bosch db49d422f2 refactor(compiler): generate less code for bindings to DOM elements
Detailed changes:
- remove `UNINITIALIZED`, initialize change detection fields with `undefined`.
  * we use `view.numberOfChecks === 0` now everywhere
    as indicator whether we are in the first change detection cycle
    (previously we used this only in a couple of places).
  * we keep the initialization itself as change detection get slower without it.
- remove passing around `throwOnChange` in various generated calls,
  and store it on the view as property instead.
- change generated code for bindings to DOM elements as follows:
  Before:
  ```
  var currVal_10 = self.context.bgColor;
  if (jit_checkBinding15(self.throwOnChange,self._expr_10,currVal_10)) {
    self.renderer.setElementStyle(self._el_0,'backgroundColor',((self.viewUtils.sanitizer.sanitize(jit_21,currVal_10) == null)? null: self.viewUtils.sanitizer.sanitize(jit_21,currVal_10).toString()));
    self._expr_10 = currVal_10;
  }
  var currVal_11 = jit_inlineInterpolate16(1,' ',self.context.data.value,' ');
  if (jit_checkBinding15(self.throwOnChange,self._expr_11,currVal_11)) {
    self.renderer.setText(self._text_1,currVal_11);
    self._expr_11 = currVal_11;
  }
  ```,
  After:
  ```
  var currVal_10 = self.context.bgColor;
  jit_checkRenderStyle14(self,self._el_0,'backgroundColor',null,self._expr_10,self._expr_10=currVal_10,false,jit_21);
  var currVal_11 = jit_inlineInterpolate15(1,' ',self.context.data.value,' ');
  jit_checkRenderText16(self,self._text_1,self._expr_11,self._expr_11=currVal_11,false);
  ```

Performance impact:
- None seen (checked against internal latency lab)

Part of #13651
2017-01-03 13:05:05 -08:00
..
benchpress feat: update to rxjs@5.0.1 and unpin the rxjs peerDeps via ^5.0.1 (#13572) 2016-12-19 16:24:53 -08:00
common fix(common): add link to trackBy docs (#13634) 2016-12-22 13:25:51 -08:00
compiler refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
compiler-cli chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
core refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
docs docs(cheatsheet): correct HostBinding decorator example (#13206) 2016-12-05 10:25:40 -08:00
examples refactor: format and lint code 2016-12-12 11:30:25 -08:00
facade refactor(facade): don't expect super() to return a new Error object in BaseError (#12600) 2016-12-14 11:54:57 -08:00
forms refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
http docs(Http): fix and extend samples for testing/MockBackend (#13689) 2016-12-29 09:39:00 -08:00
language-service chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-browser chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-browser-dynamic chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-server chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-webworker chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
platform-webworker-dynamic chore(tslint): update tslint to 4.x (#13603) 2016-12-27 14:55:58 -08:00
router fix(router): update route snapshot before emit new values (#13558) 2016-12-27 15:57:22 -08:00
upgrade refactor(compiler): generate less code for bindings to DOM elements 2017-01-03 13:05:05 -08:00
license-banner.txt build: remove JS suffix from the license banner 2016-09-13 21:48:58 -07:00
README.md docs: update README.md for npm packages 2016-09-14 17:14:02 -07:00
router-license-banner.txt fix(router): add a banner file for the router (#12919) 2016-11-16 09:17:19 -08:00

Angular

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

License: MIT