question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 2 havily dependent on buggy Zone.js

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior Angular 2 is heavily dependent on buggy library Zone.js which overrides prototypes of global scope functions. The issue is described here http://stackoverflow.com/questions/38304111/angular-2-dependency-zone-js. In short using Angular 2 in one part of a big application affects another parts because of the Zone.js overridings.

Expected/desired behavior It should be possible to sandbox Zone.js to the part of the application where we want to use Angular 2. It was possible in Agular 1.x to bootstrap it for the part of the application.

Reproduction of the problem

What is the expected behavior?

What is the motivation / use case for changing the behavior? The use case is described in http://stackoverflow.com/questions/38304111/angular-2-dependency-zone-js. As a developer of one of the teams that work on a big project I want to be able to implement my module using Angular 2 without affecting other teams’ modules.

Please tell us about your environment:

  • Angular version: 2.0.0-rc.3
  • Browser: [all]
  • Language: [all]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Brooooooklyncommented, Jul 12, 2016

I agree, I think zone.js should only effect to angular inside and invisible to the outside.

2reactions
aigorcommented, Jul 12, 2016

Hi, for me it is critical issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What the hell is Zone.js and why is it in my Angular 2? - Medium
Polyfills are required for Angular 2 to function properly (the exact list depends on the browser used) and external dependencies ([zone.js]( ...
Read more >
Conflicting UNMET Dependency hell angular@2 / rxjs zone.js
This kind of tautological dependency hell seems common place my search on: [angular2] unmet peer dependency. Rapidly yielded 23 results mostly ...
Read more >
Zone.js and rxjs dependencies are causing issues when ...
ng2-simple-timer is declaring peer dependency on zone.js but it is not using it directly. It shouldn't do it - zone is angular peer...
Read more >
Do you still think that NgZone (zone.js) is required for change ...
Yes, Zone and NgZone is used to automatically trigger change detection as a result of async operations. But since change detection is a...
Read more >
NgZone - Angular
A zone is an execution context that persists across async tasks. You can think of it as thread-local storage for the JavaScript VM....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found