Questions tagged [zonejs]

Implements Zones for JavaScript

Links

127 questions
1
vote
1 answer

How to evaluate a promise of an Angular app remotely via chrome-remote-interface

I'm using the chrome-remote-interface node package to access an Angular app remotely. To evalate an expression that returns a Promise, I use this code snippet: Runtime.evaluate({expression, awaitPromise: true, returnByValue: true}); I get the…
Markus Ende
  • 830
  • 1
  • 9
  • 21
1
vote
1 answer

Angular + d3: Animation of svg creates horrible CD thrashing

So, I have a component that contains some d3. It's not extremely complicated. But the SVG needs to be in constant transition. In order for that to happen. Once the function that does the transition runs, it then sets a timeout to call itself again…
frosty
  • 21,036
  • 7
  • 52
  • 74
1
vote
0 answers

After upgrade AngularJS app to include Angular - marcoTask 'RequestAnimationFrame' exception

We've upgrade a large AngularJS app to Angular. By upgrade I mean bootstrapping Angular app and then bootstrapping AngularJS. Everything seems to work fine on Chrome but when using FireFox we get the following exception every so often: macroTask…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
1
vote
1 answer

[Angular 2]Fabric js & Zone js not working properly together

I have an Angular 2 project, therefore using zone.js, in which users can edit / draw pictures on a modified canvas (provided by FabricJS). Until recently, I kept zone.js on 0.8.5 version because I mainly didn't have time to upgrade it and test if…
Mozgor
  • 186
  • 3
  • 12
1
vote
1 answer

Angular2 domevents + rxjs callbacks happen outside NgZone on Safari

After upgrading a big Angular2+Polymer1 based client project from Angular2 beta to stable, I've noticed that Angular's (eventname) DOM attribute triggers functions outside NgZone when using Safari, as well as RxJS's callbacks (subscribe, map). This…
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
1
vote
0 answers

How can i overcome 'Error: Zone already loaded' conflicts with Angular?

I have developed a simple Angular app built using Angular CLI that is designed to be embedded within third party websites. It works fine on a demo site in production mode. However, when the app is included within a website running on Squarespace i…
Luke Clifton
  • 81
  • 1
  • 8
1
vote
1 answer

How to bypass zone.js in Angular 2 when using external script?

I have an Angular 1 application with ngUpgrade. The application pulls in an external script file (a 3rd party service's lib), that polls a server via setTimeout.. Now, the application works perfectly, except if I want to test it with Protractor, it…
1
vote
1 answer

Bind methods on Zone callbacks from an external class

Context I'm starting a student project which is a metric tool for angular2. I'm actually working on the proof of concept, the proof that I can get metrics on a component at runtime only using a static register method…
Supamiu
  • 8,501
  • 7
  • 42
  • 76
1
vote
0 answers

Execute JavaScript when Angular2 is done updating UI

I am trying to figure out the best way to call Javascript after Angular is done updating the UI. My problem stems from the fact that KendoUI requires display:block in order to render properly. However, the Angular 2 change to this.toggleGridView is…
Chris Fremgen
  • 4,649
  • 1
  • 26
  • 26
1
vote
1 answer

Angular2 Failing to update to RC7 - zone.js & reflect-metadata

I'm trying to get my application to run with the new RC7 of angular but i cant seem to be able to get it done, as the console shouts: Promise rejection: Zone.assertZonePatched is not a function angular2-polyfills.js:489 And when this somehow…
Kesem David
  • 2,135
  • 3
  • 27
  • 46
1
vote
0 answers

Angular2 - queryParam changes gets executed but not reflected in Safari + IE11

I'm listening to queryParam changes in a component in order to update and save the state of an active row. Clicking on the rows highlights the one, using the browser back button marks the prev. row as active. So far so good. But then there's IE11…
jowe
  • 181
  • 1
  • 5
1
vote
1 answer

Angular CLI shared folder sub-folders

One of the 'shared' folders in a the angular 2 is getting quite full with services/models so I would like to move files into sub-folders of the shared folder I'd like to go from this folder structure: app - shared - test.service.ts to app -…
Nik
  • 7,086
  • 6
  • 36
  • 52
1
vote
0 answers

How can I make Facebook Javascript SDK work with Angular 2 and Zone?

I'm trying to build an authentication service for my angular2 app using FB Javascript SDK, however, the fact that the method FB.login (window.FB.login) is "out of the Zone" is breaking the "auto render thing" on my webapp. It happens because changes…
dygufa
  • 186
  • 10
1
vote
0 answers

What may cause huge delay when upgrading to beta 16 from beta 15?

I was writing app in beta 15, and now it has come time to upgrade to latest version. I've realized that when I've updated from beta 15 to beta 16 (also updating ZoneJS from 0.6.10 to 0.6.12), my app is freezing the whole browser. I've investigated,…
uksz
  • 18,239
  • 30
  • 94
  • 161
1
vote
1 answer

How let Angular2 RC1 know about changed DOM

This is actually a spin off from here, with a much simpler use case, though. It is about how to let Angular2 know that there are externally added DOM elements containing Angular directives. In this case, I add a new click button whose on-click event…
Jan B.
  • 6,030
  • 5
  • 32
  • 53
1 2 3
8 9