X Tutup
Skip to content

bug(upgrade): infinite digests with setTimeout (repro inside) #6385

@andreialecu

Description

@andreialecu

angular2/upgrade has a bug that occurs when an angular1 watcher calls setTimeout, as is the case with many angular1 components.

Repro: http://plnkr.co/edit/5iCEQOSOer5c630FStXv?p=preview

This results in infinite angular1 digests because of this line:

https://github.com/angular/angular/blob/master/modules/angular2/src/upgrade/upgrade_adapter.ts#L341

Changing ngZone.run to ngZone.runOutsideAngular there seems to fix it or make it more manageable.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup