Questions tagged [zone.js]

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

Zone API is inspired by Dart and is developed along with Angular2.

https://github.com/angular/zone.js/

148 questions
0
votes
0 answers

zone.js throwing 404 error after upgrade angular 6 to 7.2

I upgraded my angular project from 6 to 7.2 , after that zone.js is throwing 404 for http://localhost:4200/sockjs-node/info?t=1656689468665. error: "Not Found" message: "No message available" path: "/sockjs-node/info" status: 404
user6044627
  • 100
  • 11
0
votes
1 answer

Angular 7 ngZone throwing undefined error

I'm trying to render a 3d object using three.js. However, when I try to initialise the animation loop (within ngAfterViewInit) I keep getting the following error: TypeError: Cannot read property 'ngZone' of undefined In order to reduce cpu cost,…
0
votes
3 answers

Micro apps with Angular 7 - Zone.js and custom elements issues

I'm pretty new in developing Angular (7), because I think about the architecture for a new large web project. So I play a little bit with the possible options, especially using a micro frontend. I created two angular projects -> "micro-app-shell"…
Isgam
  • 35
  • 4
0
votes
2 answers

In Angular For Every Error on Html and TS and Module Error it is showing same error Details

in Angular Project i am using Angular 5 with .Net MVC. for Ts error, Module Level Error and Even for HTML syntax error also it is Displaying same error. its getting Difficult to Handle. please Help me. TypeError: exceptionHandler.handleError is not…
0
votes
1 answer

Losing zone.js properties after using await command

I'm using zone.js inside my AdonisJs project to create execution context. I have a piece of middleware that creates a zone as follows: async handle ({ request, response }, next) { let token = jwtDecode( request.header('Authorization') ) //…
prime
  • 2,004
  • 3
  • 28
  • 45
0
votes
1 answer

Can you provide a custom shim/patch with zone.js?

The way that zone.js works is by shimming out all standard browser/node APIs. That's a neat idea and seems to work quite well. It occurs to me that if its possible to provide your own custom shims then you could use that as a very flexible mocking…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
0
votes
1 answer

Angular App freezing in both Edge and Firefox

I have recently been working on an angular application. It works well in all browsers I can find on both mobile and pc, except Edge and Firefox. Both Edge and Firefox are freezing without any output to the console. Firefox tells me after a while…
Gustav G
  • 459
  • 3
  • 10
0
votes
1 answer

angular 6 Uncaught Exception from zone.js

I am trying to build an application in angular but i'm running into a problem when my application is unable to catch an exception thrown inside zone.js (version ^0.8.26). I'm relatively new to angular but my objective is to have my custom…
helloworld2013
  • 3,094
  • 5
  • 19
  • 26
0
votes
1 answer

How to schedule task in another zone

How to schedule catched task in another zone? Assume I want to schedule all setInterval`s in root zone. It`s not working: Zone.current.fork({ name: "Chiled_zone", onScheduleTask(parentZoneDelegate: ZoneDelegate, currentZone: Zone,…
0
votes
1 answer

onclick , onkeydown ... are browser api or JavaScript api?

I was learning how zone.js monkey-patches browseraAPI(basically async tasks), and fork hooks to notify when an activity starts and ends. setTimeOut is browserAPI not a javascript thing, so Zone can patch it but how about onclick,…
Subhadeep
  • 257
  • 5
  • 13
0
votes
1 answer

Disable zone.js mousemove for changeDetect

is there any way to disable change detection on mousemove without adding onPush ?
PRAH
  • 670
  • 7
  • 19
0
votes
1 answer

Angular change detection zone.js

Having a question regarding an article about zone.js in Angular2+. I was reading an article from blog.angular-university.io. I thought some parts were a bit cryptic and have some questions about it and things I'm not sure if I understand correctly.…
Willem van der Veen
  • 33,665
  • 16
  • 190
  • 155
0
votes
2 answers

How to debug node module errors such as this one?

I've just been thrown this ugly error and I'm not too sure how to start debugging it? I've looked at the code in zone.js or the other files below, but that doesn't say too many things at a first glance. As I understand from this code is that the…
Mihai Banu
  • 7
  • 1
  • 4
0
votes
1 answer

How know when Zone.js runs and where it has been triggered for debug purpose?

I work on an Angular application which use several third party libraries (leaflet/wijmo/d3/..). For performances, I already use cdRef.OnPush almost everywhere. And to prevent too many Zone runs, I use zone.runOutsideAngular() inside some specific…
bertrandg
  • 3,147
  • 2
  • 27
  • 35
0
votes
1 answer

Angular 2 Data in Html not Updating after Adding,Editing or Deleting

I have an Angular App that is making an http request to a local API which returns all items in the database. On first load all the data loads without any problems, after adding another item to the database and having my data refresh every 5 seconds.…
kazeal
  • 13
  • 4