Questions tagged [zone]

For questions about zone.js. *Not* for questions about time zones (use the timezone tag), DNS zones or other meanings of zone.

What's a Zone?

A Zone is an execution context that persists across async tasks. You can think of it as thread-local storage for JavaScript VMs.

See this video from ng-conf 2014 for a detailed explanation:

More info in documentation oficial.

247 questions
5
votes
3 answers

Angular 2 : what make a service to be "Outside" angular zone?

After having same issues as many people on StackOverflow i didn't manage to understand what is an "Outside angular zone" Service ? I've checks all existing questions around this subject, and it's exactly why i needer to ask this one…
Sid
  • 331
  • 2
  • 10
5
votes
1 answer

Conditional background color in line charts

I am currently trying to convert our charts over from PQ Systems Chartrunner to SSRS 2008 charts. I am currently working with a line chart in SSRS 2008 and am trying to get the background color to change for the different sigmas. I am able to…
user1368059
  • 73
  • 1
  • 6
5
votes
2 answers

PostgreSQL round timestamp seconds down for a postgres pre-created date with milliseconds

I have a query that unfortunately has to compare 2 timestamps. One timestamp is given to the DB from the PHP date() function, stored as timestamp without time zone, so there's no milliseconds added to this date. The other is a PG timestamp with time…
Anthony
  • 53
  • 1
  • 6
4
votes
2 answers

Unbiased Time System C#

I am creating a reminder system for the software that we have. Currently I have the user give me the time they would like to be reminded and I store it in a database. Then later, I have a service that periodically checks the database for reminder…
DJ Burb
  • 2,346
  • 2
  • 29
  • 38
4
votes
1 answer

Library to parse a bind 9.x zone file in Java?

Is there anything out there that already does this? I looking for something that will help me get a bind zone file loaded into java objects.
Joelio
  • 4,621
  • 6
  • 44
  • 80
4
votes
0 answers

How to know what causes "Timer fired" in angular

My angular app has a lot of "Timer fired" events those are invoked from zone-evergreen.js I would like to examine what is the cause of these events. How can I do this? Angular version is 11.2.9.
N.F.
  • 3,844
  • 3
  • 22
  • 53
4
votes
0 answers

Jest issue in Angular - UnhandledPromiseRejectionWarning zone.js

Currently trying to execute Jest in Angular. Getting an unhandledpromise error from zoneDelegate. Cannot seem to resolve. Tried to update zone.js to version 11 but that seems to generate new issues. I've tried adding async to the spec.ts but that…
Pimmesz
  • 335
  • 2
  • 8
  • 29
4
votes
2 answers

Some dates cannot be converted correctly in Java to an epoch timestamps at the midnight of a specific timezone

This Java code, given a date as a string, is supposed to print the epoch timestamp for the same date at the midnight for the CET zone (supposing I'm not in the same zone). public static void main(String[] args) throws ParseException { String…
user1883212
  • 7,539
  • 11
  • 46
  • 82
4
votes
5 answers

Unhandled Promise rejection: this._next is not a function : Zone in @angular/fire/messaging

When I am receiving firebase push notifications in the foreground, by using @angular/fire/messaging. The method is: this.angularFireMessaging.messages.subscribe( (payload) => { console.log("new message received. ", payload); …
4
votes
1 answer

Promise being converted into ZoneAwarePromise

I'm using Angular5 in my project. I implemented methods in my api service to return promises method(): Promise { return new Promise((resolve,reject) => { this.http.get(url).subscribe((response) => { …
4
votes
1 answer

Why is the zone "asia-northeast1-a" showing up as in California instead of Japan

According to https://cloud.google.com/compute/docs/regions-zones/, the region/zone "asia-northeast1-a/b/c/" should suppose to be in Tokyo, Japan. But once I came up with the virtual machine with that zone/region, an IP trace/lookup website such as…
Clark Kent
  • 41
  • 2
4
votes
2 answers

Angular debug context error Cannot read property ngDebugContext

I updated my version of angular from 2 to 4 and now I am getting this exception when executing a service: ERROR TypeError: Cannot read property 'ngDebugContext' of undefined at getDebugContext (core.es5.js:994) at isViewDebugError…
mruanova
  • 6,351
  • 6
  • 37
  • 55
4
votes
1 answer

Using ngZone onStable to check whether the component is rendered

I am trying to use ngZone to update my pagination state once the zone is stable so that the component I am trying to paginate will be fully rendered, and I will get the correct scrollWidth from the renderer. The way it is being used in Angular…
williwaw
  • 73
  • 1
  • 6
4
votes
3 answers

ZoneAwarePromise has been overridden

After upgrading an application to rc-7 and running my unit tests to be sure nothing broke, I got this error message on about half of my unit tests. "Error: Zone.js has detected that ZoneAwarePromise '(window|global).Promise' has been…
Jacob McCarthy
  • 218
  • 3
  • 15
4
votes
2 answers

Getting Windows Time Zone Information (C++/MFC)

I’m trying to: Get a list of the time zone names as they appear in when the user selects a time zone from the Windows Control Panel (e.g., “(UTC-08:00) Pacific Time (US & Canada)”). I’m doing that by reading “CurrentVersion\Time Zones” section…
Steve A
  • 1,798
  • 4
  • 16
  • 34
1
2
3
16 17