Questions tagged [zonejs]

Implements Zones for JavaScript

Links

127 questions
0
votes
0 answers

Angular UpgradeModule and ZoneAwarePromise

Background, have an app built originally with angularjs, it's now a angularjs/ angular hybrid using the UpgradeModule. There's been kind of an ongoing problem with falling out of the angular zone and ending up in the zone. Have hit on a…
lTyl
  • 156
  • 4
0
votes
2 answers

How to refresh ngFor list when it was modified by window event?

I make an Ionic app with Angular and I need to read barcodes with a physical barcode reader. This reader is typically like a physical keyboard which sends keyboard event after it read a barcode. So I made a script to capture Keyboard event on the…
0
votes
2 answers

HttpClient POST resolve to domain host IP instead of API IP

Current behavior currently i host angular at firebase hosting which has 151.101.1.195 and my API is located at azure server that has IP 23.98.64.158 then i send POST request using the following lines in my angular v6.1.7 const req = new…
0
votes
1 answer

WebRTC ICE connection fails using Angular between safari and firefox even when ice candidates are gathered

Calling from Firefox 61.0.1 to Safari 11.1.2 results in ICE connection failed after all of the candidates are gathered in the Angular 5.x app. The app is using webrtc-adapter to add cross-browser support. Tested browsers: FireFox 61.0.1 Opera…
0
votes
2 answers

Angular Reactive Form : Cannot set property of undefined

I'm stuck with Angular5 ReactiveForm. Actually, I create a basic model sub sub.model.ts : export interface Subscription { name: string; } I also have a component : : sub.component.ts import { Component, OnInit } from…
ghuntheur
  • 392
  • 1
  • 5
  • 17
0
votes
1 answer

Angular 4 TestBed compileComponents

I have an angular 4 project which is inspired from angular cli. With angular 4.1.x everything works fine (run, build, unit tests, isolated component tests). But when i move to ^4.2.0 which installs 4.4.6 , i get the following issue described below.…
Rupam Roy
  • 113
  • 1
  • 8
0
votes
1 answer

Body event StopPropagation() not working when used with Zone.js

Overall what I am doing is I have a datepicker where clicks bubble up to the body, and I also have ag-grid which has a column menu that listens for clicks on the body and closes the menu. See plunkr, just have to click the hamburger next to DOB and…
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
1 answer

Ionic iOS promise never resolves

I am implementing Google Sign-in in my Ionic 3 app with Firbase. I've successfully been able to use the native Google Plus Cordova plugin, then login with credentials to Firebase using Angular Fire 2. Here is my code: public loginWithGoogle():…
user5365075
  • 2,094
  • 2
  • 25
  • 42
0
votes
0 answers

What is Change Detection in Angular2?

What is the Change Detection that mentioned here for Angular 2? How ZoneJS doing that in Angular 2. UPDATE: What do you mean when you say 'Change Detection'? Is it to detect the changes in the data or the DOM elements?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
0 answers

Why does component view update when change detection is set to onPush?

I have a Plunkr demoing the problem here: https://plnkr.co/edit/e5OVhuWtyStxI1vvXd9h Summary is: I have a Parent and Child component. Child has change detection strategy set to onPush. Child's template is just this: @Component({ selector:…
0
votes
1 answer

Why is my component not found by zonejs in angular 2.4 with typescript

I have a angular 2.45 project written in Typescript. I've added a new component to the routing module of my app and also imported the new component. When I start the app I receive the following error: Unhandled Promise rejection: Component…
Leo Gerber
  • 485
  • 6
  • 15
0
votes
1 answer

Execute http request inside NgZone with Angular2

I'm wondering how I can execute an http request where I update the profile view within the Angular2 Zone. In my top level profile component I'm currently doing a single simple http request using authHttp: export class ProfileComponent implements…
Syntactic Fructose
  • 18,936
  • 23
  • 91
  • 177
0
votes
0 answers

angular2 peer dependency on zone.js

I think I have reasonable understanding of what npm peer dependencies are and why we need them. A common example is grunt modules. If you are writing a grunt module that is only compatible with version x of grunt, you have to make sure anyone using…
d512
  • 32,267
  • 28
  • 81
  • 107
0
votes
1 answer

Using Angular2 on SharePoint 2013 MasterPage leads to Zone.JS error

i build a small angular2 app. I am referencing the appcomponent directly on a custom sharepoint 2013 masterpage. Its loading correctly but when i am opening the settings menu of the sharepoint i got a "Out of stack space" error in the zone.js…
aflicht
  • 16
  • 1
0
votes
1 answer

zone.js returns "Maximum callstack exceeded"

When I am trying to create a new google Map in angular 2 zone.js is giving me a maximum callstack exceeded. Has anybody experienced this? Map Component: import { Component, OnInit} from '@angular/core'; import { Map, MapOptions, LatLng}…
Moddinu
  • 185
  • 1
  • 7
1 2 3
8
9