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
0
votes
1 answer

Angular 7 uI not updated after subscribe returns values

In respect to the following code, it would appear that the UI is not updated with the value, yet, I can see the value being set to the field correct. I have tried 2 different approached, bar have not tried the change detection approach as I believe…
0
votes
2 answers

Angular .nozone file uploader component

I'm working in Angular 7 trying to create a drag and drop file upload component. I have it working below. public stopPreventAndSetClass(b: boolean, event: any): void { if (event.target === this.enterTarget) { this.draggedOverTable =…
0
votes
1 answer

blur event handler not working when using runOutsideAngular method (Angular 2+)

I am using this Tiny Date Picker library to implement a range datepicker, I am using the NgZone, to run it outside the angular, using the runOutsideAngular() method, now I want to implement a blur event handler, so that when I click outside the…
M. Gamie
  • 163
  • 3
  • 13
0
votes
0 answers

DOM view does not get updated, angular is not in zone

I have a zone related problem, and i can't get it working. i'm new to angular but have some basic javascript understanding. So what is the problem, i can not get the view updated. Im using a third party library for ionic BLE, and use this in a…
0
votes
2 answers

Angular 2 : View doesn't update when function is called from promise

My angular is pretty basic. I have a view where I display an object (which is in a service):
{{group.id}} - {{group.name}}
The simple version of my service looks like this: public…
0
votes
0 answers

Angular 5.2.0: Cannot read property of undefined in ngZone.run

I'm completely new to Angular, so I hope I can describe my problem clearly. I'm trying to get the date property from an observable to display it in KendoUI datetime picker in frontend. Here is my source code: I have an object ResultObject with 2…
alaa_sayegh
  • 2,141
  • 4
  • 21
  • 37
0
votes
1 answer

How to Detect changed data immediately in angular web page

This is my angular html code. {{asset.userId}} {{asset.requestDetails}}
a bc
  • 43
  • 1
  • 1
  • 7
0
votes
2 answers

How to bind component method to button's 'onclick' outside Angular?

I have an Angular 4 app and a component, which generate some markup dynamically. And I need to bind this component's method to some element in this markup. The only way, that I found is to generate this element with onclick attribute. And so now my…
0
votes
1 answer

NullInjectorError: No provider for NgZone

I've created angular library with material design (package.json below) { "name": "angular-lib", "version": "0.0.0", "license": "UNLICENSED", "dependencies": { "@angular/core": "^5.2.0", "@angular/common": "^5.2.0", …
Dariusz Filipiak
  • 2,858
  • 5
  • 28
  • 39
0
votes
3 answers

ngZone or zone.js: the place of monkey-patching?

I'm learning how ngZone works in Angular. I understood that it's doing monkey-patching of standard async operations(such as setTimeout). But who is doing monkey-patching? zone.js library or Angular itself within ngZone? It would be great if you…
Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176
-1
votes
1 answer

nativescript-background-http detaches view

ai am creating application with naticescript and angular. I have implemented progress indicator with messages. While testing from angular components everything works fine however when i start using real nativescript-background-http progress…
-1
votes
2 answers

Angular Change Detection not triggered, parts of viewlayer not updating. ChangeDetectorRef not solving issue.

I have a component: import { Component, OnInit, Input, NgZone, ChangeDetectorRef } from '@angular/core'; import { Product } from '../product'; // data types import { PRODUCTS } from '../mock-products'; // database import { CartService } from…
1 2 3 4
5