Questions tagged [ngzone]

Any question related to ngZone and change detection cycle of Angular framework can use this tag

  1. Any question related to Change Detection cycle using NgZone can add this tag

  2. NgZone is derived from zone.js but NgZone is specifically being used by Angular framework to manage its "Change Detection" cycle.

  3. This tag should not be used if the question is related to zone.js and has nothing to do with Angular framework

72 questions
1
vote
1 answer

Ui not updating for events outside ngZone Angular

In my project I am fetching email via Google Contact API. My problem is that After fetching email, angular UI is not updating. Here is my code for the fetching emails in ContactComponent.ts import { Component, OnInit, EventEmitter, Output, ViewChild…
Zakir saifi
  • 406
  • 4
  • 23
1
vote
1 answer

NgZone no longer works

My NgZone seems to no longer work.. I'm building an app using Ionic, Angular, and Firebase. It produces an error: Unhandled Promise rejection: Missing Command Error ; Zone: ; Task: Promise.then ; Value: Missing Command Error undefined I've had…
Simon
  • 2,498
  • 3
  • 34
  • 77
1
vote
0 answers

In angular 4 after subscribing to web socket not able to update UI element with message from socket

I am doing coding angular 4. I have a web socket and i am able to log message coming on web socket with console.log() , but when I update variable with that message same is not getting reflected on UI. Please find the code below. constructor(private…
Amit G
  • 11
  • 3
1
vote
1 answer

After Angular 6 Update this._zone.onMicrotaskEmpty undefined

after updating application to angular 6 I get errors during test execution TypeError: Cannot read property 'subscribe' of undefined at new ApplicationRef node_modules/@angular/core/fesm5/core.js:4322:1) at _createClass…
1
vote
0 answers

How to debug Angular2 when it frezzed - Good practise

This is a double question... or maybe one is the question and the other the consequence of not knowing the answer to the question.. I have an Angular2/4 App that it started to freezed always in the same screen... Not in the other ones... I want to…
Faabass
  • 1,394
  • 8
  • 29
  • 58
1
vote
0 answers

Angular 5 - Detect changes when using websockets

I have a problem working with websockets and displaying the changes in real-time. I have an array of orders. This array is coming from a NodeJS backend server from calling on ngOnInit() method my orderService.getOrders() which fetches the orders…
1
vote
1 answer

Using NgZone to update the component view

I am having a component's structure as -stats -stats.component.ts -stats.component.html -stats.component.css I need to update the myData object in stats.component.ts/html file using NgZone so that when rpm,speed or any value is updated in the…
Usman Akram
  • 21
  • 1
  • 6
1
vote
0 answers

Angular Universal App is rendering server-side with outstanding micro-/macrotasks

I am requesting a SaaS api due to a 3rd party library. Server finishes rendering angular universal app when there are outstanding/unfinished service calls. I am using Angular 5.2.0 and it's SSR functionality. This is an abstract structure of my…
1
vote
1 answer

Angular 4 How wait for loaded all images

I using ui-routing for NG4 (each section is different ui-view). In some section I use (waypoint.js - imakewebthings.com/waypoints/) with ngZone and I need wait for load all images and videos (in all ui-view in page) to get true page height. Is it…
Eutrepe
  • 866
  • 1
  • 9
  • 9
0
votes
0 answers

OpenSeadragon constructor Cannot read appendChild of null

Sometimes when I use the Openseadragon contructor I get this error. There isn't a regular pattern to reproduce the error, maybe 2 or 3 times on 10 contructor will go in this error. My simple code is the following And it also occurs when if I use…
Edo2610
  • 184
  • 1
  • 9
0
votes
0 answers

How to handle the Angular material dropdown when got stuck on selection?

I have one dropdown, when selecting one dropdown we have some funtionality. But, the selected option remains there and I am not able to select other dropdown. So, I used this solution for the problem. // reset dropdown…
Sagar Panwar
  • 21
  • 1
  • 11
0
votes
0 answers

What is the purpose of running code in NgZone.run in angular?

I came across this following code which invokes a dialog inside NgZone.run method. What is the purpose of invoking a dialog inside NgZone.run?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
1 answer

Angular 13 Hightchart not loading in different tabs

when page loaded(Home page), the highcharts are loading correctly. After changing tabs or components and then pressing back to the previous tab or component(Home page) , the highcharts doesn't loading here i am using angular 13 ,highcharts,…
0
votes
0 answers

How to track components/views that trigger Angular change detection

is there a way to track components that cause change detection? I tried with Angular DevTools of Chrome, but it is not detailed Thanks a lot
Marco
  • 61
  • 3
0
votes
0 answers

Init LogRocket in Angular creates infinite check loop

I am adding LogRocket to my application with Angular 12. // app.component.ts: import LogRocket from 'logrocket'; // Other code here .... ngOnInit(): void { this.zone.runOutsideAngular(() => { LogRocket.init('ifueec/platform'); }); …
Conde
  • 785
  • 15
  • 31