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
44
votes
2 answers

Mac Os X Terminal: How to view a domain's zone file?

I'm trying to query a domain to retrieve its full DNS zone listings (A, MX, CNAME,…) It seems that host -a is only returning the NS and MX records. Any help would be much appreciated. Thanks.
Jannis
  • 17,025
  • 18
  • 62
  • 75
29
votes
3 answers

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the "Unauthorized Zone"?

I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for…
mrmcderm
  • 461
  • 1
  • 5
  • 7
14
votes
4 answers

Conflict between zone.js and Jasmine's clock

I am working with a Jasmine testing suite that includes both "vanilla" Jasmine tests along with Jasmine tests for some Angular 2 components. Because of Angular 2's inclusion, zone.js gets loaded. This creates a conflict with Jasmine's clock. For…
lewistg
  • 336
  • 4
  • 8
13
votes
1 answer

Angular2: Better/Deeper Zone Stacks for Debugging

Is there a way in Angular2 to get better call stacks for asynchronous code? I always thought it is one of the strengths of Zone to keep track of the execution contexts of setTimeout(), emitted events, Promises, etc.? I built a plunker example which…
Seraph
  • 157
  • 8
12
votes
1 answer

What does Angular Ivy specifically allow us to do in regards to manual change detection?

This article mentions that Ivy opens a few possibilities for the future though. It should now be possible to run an application without zone.js, and to semi-manually handle change detection (a bit like you would with React). These APIs already…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
10
votes
5 answers

Why does toaster service inside Global Error Handler wont work in Angular4/5/6?

My requirement is to load some data by calling Two Rest Api's before app component loads.If API gives any error display the message in Toaster (angular2-toaster). Before loading app component the below AppLoadService executes import { Injectable }…
9
votes
4 answers

gcloud compute command to know current zone of machine

I need help in google cloud , I am doing 1 application using google cloud. in google cloud I have 1 instance of windows and google cloud sdk on that. I need one command which will return zone name of that instance. Note - I don't need zone list. I…
Bharat Karale
  • 101
  • 1
  • 4
7
votes
3 answers

"TIMESTAMP WITH TIME ZONE" <--> DateTImeOffset mapping won't deliver the Zone part on INSERT commands (Entity Framework + Oracle)

I use EF (EDMX model - DB first) to map "TIMESTAMP WITH TIME ZONE" to a DateTimeOffset. when I commit the DateTimeOffset to Oracle, the Zone part is saved incorrectly. So if using the model, for example, to insert the value 29/02/2012 10:10:10…
EliH
  • 71
  • 1
  • 3
7
votes
1 answer

Angular Material Components without zone.js

because of performance issues in one of my angular11-apps I decided to opt out of zone.js with {ngZone: noop}. I'm still using angulars material components but without zone.js some of them won't work correctly. For example the MatTooltip won't be…
Draftsman
  • 83
  • 6
7
votes
0 answers

iOS 13, CloudKit and CoreData Sync with custom zones for sharing

During WWDC 2019 Apple introduced NSPersistentCloudKitContainer which allows for syncing of CoreData with CloudKit. It is a great addition. In iOS 13 in notes app also user is allowed to to share the entire note "FOLDER" with another user. Given…
Congruent Tech. UG
  • 1,408
  • 2
  • 12
  • 21
7
votes
2 answers

Angular 4 put a global constant available to zone.js

i am using Angular (4 i think) with typescript and zone.js (0.8.4). I import zone.js via the "polyfills.ts" file. When I look inside the source code of zone.js, there is code like this: var isDisableIECheck = _global['__Zone_disable_IE_check'] ||…
Jojje
  • 1,749
  • 3
  • 25
  • 44
7
votes
2 answers

How to know if the CloudKit Zone exists already

To add a CKRecord in a private CKRecordZone you need to make sure the zone exists already. But does it mean that every time I need to insert a record I need to fetch all the zones and find if my zone exists using…
Duzmac
  • 421
  • 1
  • 5
  • 14
6
votes
1 answer

Maintaining request scope in Express/Node.js

I am using Express to expose a REST API in my Node.js application. When a REST request comes in, I extract the user information from the HTTP headers. I would like this information to be available throughout the life of this request, no matter what…
Naresh
  • 23,937
  • 33
  • 132
  • 204
6
votes
3 answers

Programmatically add A records to DNS zone file?

I am working for a company and we have a domain name hosted on GoDaddy. For the website/application we are creating, we need to be able to programmatically add "A records" to the DNS zone file to point specific subdomains to specific IP…
Edward B.
  • 437
  • 3
  • 10
5
votes
1 answer

Get system date/time in Python after changing time zone

On my system, I have set the current time zone for my clock to "Kuala Lumpur, Singapore (UTC+08:00)", which puts my clock forward by eight hours (of course). In python, I'm using the code to get the current time/date: from datetime import…
William Troup
  • 12,739
  • 21
  • 70
  • 98
1
2 3
16 17