angular-docs-cn/packages
Georgios Kalpakas b3e63c09ab fix(upgrade): initialize all inputs in time for `ngOnChanges()`
Previously, non-bracketed inputs (e.g. `xyz="foo"`) on downgraded components
were initialized using `attrs.$observe()` (which uses `$evalAsync()` under the
hood), while bracketed inputs (e.g. `[xyz]="'foo'"`) were initialized using
`$watch()`. If the downgraded component was created during a `$digest` (e.g. by
an `ng-if` watcher), the non-bracketed inputs were not initialized in time for
the initial call to `ngOnChanges()` and `ngOnInit()`.

This commit fixes it by using `$watch()` to initialize all inputs. `$observe()`
is still used for subsequent updates on non-bracketed inputs, because it is more
performant.

Fixes #16212
2017-05-03 19:32:57 -07:00
..
animations feat(animations): Update types for TypeScript nullability support 2017-04-11 18:13:52 -07:00
benchpress fix(benchpress): chrome - prevent trace buffer overflow 2017-04-18 08:28:31 -07:00
common docs: fix links in api docs 2017-05-03 09:22:32 +01:00
compiler refactor(compiler): simplify AOT tests 2017-05-02 15:51:54 -07:00
compiler-cli feat(compiler-cli): add param to set MissingTranslationStrategy on ngc (#15987) 2017-04-27 17:38:59 -05:00
core docs: fix links in api docs 2017-05-03 09:22:32 +01:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples fix: Update types for TypeScript nullability support in examples 2017-04-12 11:36:19 -07:00
forms docs: fix links in api docs 2017-05-03 09:22:32 +01:00
http fix(http): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
language-service fix(language-service): remove asserts for non-null expressions (#16422) 2017-04-28 22:50:31 -05:00
platform-browser fix: turn on nullability in the code base. 2017-04-18 12:07:33 -07:00
platform-browser-dynamic fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-server fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
platform-webworker docs: fix links in api docs 2017-05-03 09:22:32 +01:00
platform-webworker-dynamic fix(platform-browser): Update types for TypeScript nullability support 2017-04-18 12:07:33 -07:00
router docs: fix links in api docs 2017-05-03 09:22:32 +01:00
upgrade fix(upgrade): initialize all inputs in time for `ngOnChanges()` 2017-05-03 19:32:57 -07: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 fix: turn on nullability in the code base. 2017-04-18 12:07:33 -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