angular-cn/modules/@angular/upgrade
Peter Bacon Darwin 20b454cbc9 fix(upgrade): detect async downgrade component changes (#14039)
This commit effectively reverts 7e0f02f but for `upgrade/static`
as it was an invalid fix for #6385, that created a more significant
bug, which was that changes were not always being detected.

Angular 1 digests should be run inside the ngZone to ensure
that async changes are detected.

We don't know how to fix #6385 without breaking change detection
at this stage. That issue is triggered by async operations, such as
`setTimeout`, being triggered inside scope watcher functions.

One could argue that watcher functions should be pure and not do
work such as triggering async operations. It is possible that the
original use case could be supported by moving the debounce
logic into the watch listener function, which is only called if the
watched value actually changes.

See #13812

PR Close #14039
2017-01-27 11:51:55 -06:00
..
src fix(upgrade): detect async downgrade component changes (#14039) 2017-01-27 11:51:55 -06:00
test fix(upgrade): detect async downgrade component changes (#14039) 2017-01-27 11:51:55 -06:00
index.ts fix: display framework version on bootstrapped component (#13252) 2016-12-06 16:21:07 -08:00
package.json docs: update descriptions in package.jsons 2016-09-14 16:44:39 -07:00
rollup-static.config.js refactor(upgrade): re-export the new static upgrade APIs on new entry 2016-10-26 15:14:22 -07:00
rollup.config.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
static.ts refactor(upgrade): re-export the new static upgrade APIs on new entry 2016-10-26 15:14:22 -07:00
tsconfig-build.json feature(tsc-wrapped): add option for closure compiler JSDoc annotations 2016-11-18 09:37:40 -08:00