angular-cn/modules/@angular/upgrade/test
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
..
aot fix(upgrade): detect async downgrade component changes (#14039) 2017-01-27 11:51:55 -06:00
metadata_spec.ts chore(lint): remove unused imports (#11923) 2016-09-27 17:12:25 -07:00
upgrade_spec.ts feat(upgrade): Support ng-model in downgraded components (#10578) 2017-01-23 11:23:45 -08:00