angular-cn/modules/@angular/upgrade/test/aot/integration
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
..
change_detection_spec.ts fix(upgrade): detect async downgrade component changes (#14039) 2017-01-27 11:51:55 -06:00
content_projection_spec.ts refactor(upgrade): re-export the new static upgrade APIs on new entry 2016-10-26 15:14:22 -07:00
downgrade_component_spec.ts feat(upgrade): Support ng-model in downgraded components (#10578) 2017-01-23 11:23:45 -08:00
examples_spec.ts refactor(upgrade): re-export the new static upgrade APIs on new entry 2016-10-26 15:14:22 -07:00
injection_spec.ts fix(upgrade/static): ensure upgraded injector is initialized early enough (#14065) 2017-01-24 14:48:03 -08:00
testability_spec.ts fix(ngUpgrade): make AoT ngUpgrade work with the testability API and resumeBootstrap() (#12910) 2016-11-16 01:04:56 -08:00
upgrade_component_spec.ts feat(upgrade): support the `$doCheck()` lifecycle hook in `UpgradeComponent` (#13015) 2016-12-20 16:18:43 -08:00