Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Expose NgZone stub service #16089

Open
Open
@kseamon

Description

@kseamon

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (see above))

Current behavior:

AngularJS code by default does not have access to a Zone (as it typically does not exist). However, in NgUpgrade the NgZone can be injected. Since some AngularJS code may be used in vanilla AngularJS as well as NgUpgrade contexts, it is awkward to include performant handling of zones without breaking the AngularJS version.

Expected / new behavior:

A service is exposed that includes the run and runOutsideAngular methods. In AngularJS, these are just stubs that call the callback with no side effects. In an NgUpgrade context, they call the same methods on the actual NgZone.

Minimal reproduction of the problem with instructions:

Angular version: 1.*

Browser: all]

Anything else:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions