zone.js Questions

3

Aim: to have a global error handler for server errors and app errors (produced in Typescript code). How: providing a custom ErrorHandler from a lib project inside the same workspace. This is my li...

1

when launching angular with a standalone component like bootstrapApplication(AppComponent,{... how can we set the ngZone parameter With modules it goes like: platformBrowserDynamic() 👇 .bootstr...
Gyimah asked 26/12, 2022 at 14:48

3

Solved

I am following this tutorial: https://angular.io/guide/testing#component-test-scenarios for karma+jasmine unit testing. Here my code: import { AppComponent } from "./app.component"; import { Compo...
Babbler asked 2/3, 2018 at 11:15

5

I have a problem with karma v1.4. testing framework. All my unit tests are now failing with error Cannot read property 'assertPresent' of undefined at resetFakeAsyncZone I've already searched for...
Unrestrained asked 22/6, 2018 at 7:40

3

Solved

I have an Angular 4.3 + Cordova application that used to work very well. But now, I get a blank screen on app start-up, and nothing happens any more. After digging a while I realized where it come...
Mcquillin asked 7/8, 2017 at 8:27

2

Solved

I've recently moved my company's website from React to Angular, since most our projects were already on Angular 7. Being the "use-the-latest-and-greatest" person that I am, I decided to implement s...
Avrom asked 25/11, 2018 at 9:58

0

Im using Visual Studio Code, and Im trying to debug Jest tests inside of a Nrwl.Nx workspace for Angular. Here is what I've tried so far: launch.json { "version": "0.2.0", "configurations": ...
Hemiterpene asked 18/3, 2020 at 21:23

2

I created a small app using angular custom elements feature (element.js), imported that element.js file into another angular(parent) app in index.html, in development server (ng serve) element feat...
Kyanize asked 28/8, 2019 at 15:41

2

I have an app with both Angular (2+) and AngularJS (1.x). We are using a third party AngularJS library that reads an object from its attrs array in a link function, like so: //3rd party lib code: ...
Advert asked 14/8, 2018 at 12:23

3

Solved

I have a GPS plugin providing locations out of an angular zone. The changes are therefore not detected by angular and the view keeps stuck with the same values. Of course, I could subscribe to thi...
Snowshoe asked 19/6, 2018 at 12:36

0

When I use ng-recaptcha component while routing to another route. Error is : Unhandled Promise rejection: timeout ; Zone: ; Task: Promise.then ; Value: timeout undefined Unhandled Promise reject...
Neotropical asked 17/9, 2018 at 7:29

1

Solved

Probably I am too late with the question but anyway. Could someone explain me in what cases I need to import zone's patch - zone.js/dist/zone-patch-rxjs. As far as I know the patch was added in th...
Dees asked 10/6, 2018 at 14:36

1

What are ways to unit test requestAnimationFrame? requestAnimationFrame has same nature as setTimeout/setInterval have. It is also patched by zone.js like fn's like setTimeout are patched. So opti...
Padnag asked 10/5, 2018 at 17:51

2

Solved

I just started to write e2e tests for my app and am running into timeout problems with Protractor and ngrx/effects. I have the following effect dispatching an action every couple of minutes: @Eff...
Vezza asked 30/3, 2017 at 14:55

2

Solved

I'm using promises to handle to handle a modal dialog: resolved when the user press the OK button, rejected when cancelled or closed. To resolve and dismiss the modal I use this methods: let mod...
Schapira asked 24/4, 2018 at 8:32

2

Here is my code in the httpService.ts public HttpPost(url: string, data: any): Observable<Response> { let headers = new Headers(); let reqOpts = new RequestOptions(); headers.append(AUTH...
Djebel asked 17/4, 2018 at 8:20

2

I have read many threads related to this but they are a little bit old now, that's why as Domain is still Deprecated till now has anyone found any other good alternative to using Domain or not ?? ...
Annular asked 26/3, 2018 at 14:43

2

Solved

What are zones? How are angular ngZone differ from zone.js? When should they be used? Can someone help with practical examples of using ngZone? I've gone through angular documentation here howe...
Unbidden asked 27/8, 2017 at 9:22

1

Solved

I'm experimenting with zones (zone.js) and I realized I don't know what's the best way to print all the zones from root to the current zone that threw an error. For example this code uses two nest...
Papilionaceous asked 24/3, 2017 at 9:26

1

Solved

We are building an application using Cordova and Angular 2. I have the following code: import { Component, OnInit, ChangeDetectorRef, NgZone } from '@angular/core'; import { Location } from '@an...
Basrelief asked 27/1, 2017 at 21:50
1

© 2022 - 2024 — McMap. All rights reserved.